1/* 2 * @(#)Imakefile 7.23 03/12/12 3 * 4 * Top-level Imakefile for xmcd, cda, labelh, libdi, cdinfo, cdda and cddb 5 * 6 * xmcd - Motif(R) CD Audio Player/Ripper 7 * cda - Command-line CD Audio Player/Ripper 8 * labelh - LabelHack Widget 9 * libdi - CD Audio Device Interface Library 10 * cdinfo - CD Information Management Library 11 * cdda - CD Digital Audio Support 12 * cddb - Classic CDDB Interface Library 13 * 14 * Copyright (C) 1993-2004 Ti Kan 15 * E-mail: xmcd@amb.org 16 * 17 * This program is free software; you can redistribute it and/or modify 18 * it under the terms of the GNU General Public License as published by 19 * the Free Software Foundation; either version 2 of the License, or 20 * (at your option) any later version. 21 * 22 * This program is distributed in the hope that it will be useful, 23 * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 * GNU General Public License for more details. 26 * 27 * You should have received a copy of the GNU General Public License 28 * along with this program; if not, write to the Free Software 29 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 30 * 31 */ 32 33 34/* 35 * Source subdirectory management 36 */ 37#define IHaveSubdirs 38SUBDIRS=common_d \ 39 cdda_d \ 40 libdi_d \ 41 cddb_d \ 42 cdinfo_d \ 43 labelh_d \ 44 xmcd_d \ 45 cda_d \ 46 util_d 47 48#if defined(HPArchitecture) 49SHELL=/bin/ksh 50#else 51#if defined(UltrixArchitecture) 52SHELL=/bin/sh5 53#else 54#if defined(XmacIIServer) 55SHELL=/bin/ksh 56#else 57SHELL=/bin/sh 58#endif /* XmacIIServer */ 59#endif /* UltrixArchitecture */ 60#endif /* HPArchitecture */ 61 62/* 63 * Build rule for subdirectories 64 */ 65#define PassCDebugFlags 66MakeSubdirs($(SUBDIRS)) 67DependSubdirs($(SUBDIRS)) 68 69 70/* This is a hack to work around problems on some platforms */ 71#ifdef ManSuffix 72MANSUFFIX=ManSuffix 73#endif 74 75/* 76 * Custom install rule 77 */ 78install:: 79 @BINDIR=$(BINDIR) LIBDIR=$(LIBDIR) MANDIR=$(MANDIR) \ 80 MANSUFFIX=$(MANSUFFIX) $(SHELL) ./install.sh -n -b 81 82