# # "$Id: Makefile 5023 2006-01-29 14:39:44Z mike $" # # Top-level Makefile for the Common UNIX Printing System (CUPS). # # Copyright 1997-2006 by Easy Software Products, all rights reserved. # # These coded instructions, statements, and computer programs are the # property of Easy Software Products and are protected by Federal # copyright law. Distribution and use rights are outlined in the file # "LICENSE.txt" which should have been included with this file. If this # file is missing or damaged please contact Easy Software Products # at: # # Attn: CUPS Licensing Information # Easy Software Products # 44141 Airport View Drive, Suite 204 # Hollywood, Maryland 20636-3142 USA # # Voice: (301) 373-9600 # EMail: cups-info@cups.org # WWW: http://www.cups.org # include Makedefs # # Directories to make... # DIRS = cups backend berkeley cgi-bin filter locale man pdftops \ notifier scheduler systemv test # # Make all targets... # all: chmod +x cups-config for dir in $(DIRS); do\ echo Making all in $$dir... ;\ (cd $$dir ; $(MAKE) $(MFLAGS)) || exit 1;\ done # # Remove object and target files... # clean: for dir in $(DIRS); do\ echo Cleaning in $$dir... ;\ (cd $$dir; $(MAKE) $(MFLAGS) clean) || exit 1;\ done # # Make dependencies # depend: for dir in $(DIRS); do\ echo Making dependencies in $$dir... ;\ (cd $$dir; $(MAKE) $(MFLAGS) depend) || exit 1;\ done # # Install object and target files... # install: installhdrs for dir in $(DIRS); do\ echo Installing in $$dir... ;\ (cd $$dir; $(MAKE) $(MFLAGS) install) || exit 1;\ done echo Installing in conf... (cd conf; $(MAKE) $(MFLAGS) install) echo Installing in data... (cd data; $(MAKE) $(MFLAGS) install) echo Installing in doc... (cd doc; $(MAKE) $(MFLAGS) install) echo Installing in fonts... (cd fonts; $(MAKE) $(MFLAGS) install) echo Installing in ppd... (cd ppd; $(MAKE) $(MFLAGS) install) echo Installing in templates... (cd templates; $(MAKE) $(MFLAGS) install) echo Installing cups-config script... $(INSTALL_DIR) $(BINDIR) $(INSTALL_SCRIPT) cups-config $(BINDIR)/cups-config echo Installing startup script... if test "x$(INITDIR)" != "x"; then \ $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/init.d; \ $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/init.d/cups; \ $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc0.d; \ $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc0.d/K00cups; \ $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc2.d; \ $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc2.d/S99cups; \ $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc3.d; \ $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc3.d/S99cups; \ $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc5.d; \ $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc5.d/S99cups; \ fi if test "x$(INITDIR)" = "x" -a "x$(INITDDIR)" != "x"; then \ $(INSTALL_DIR) $(BUILDROOT)$(INITDDIR); \ if test "$(INITDDIR)" = "/System/Library/StartupItems/PrintingServices"; then \ $(INSTALL_SCRIPT) init/cups.osx $(BUILDROOT)$(INITDDIR)/PrintingServices; \ $(INSTALL_DATA) init/cups.plist $(BUILDROOT)$(INITDDIR)/StartupParameters.plist; \ $(INSTALL_DIR) $(BUILDROOT)$(INITDDIR)/Resources/English.lproj; \ $(INSTALL_DATA) init/cups.strings $(BUILDROOT)$(INITDDIR)/Resources/English.lproj/Localizable.strings; \ elif test "$(INITDDIR)" = "/System/Library/LaunchDaemons"; then \ $(INSTALL_DATA) init/cupsd-launchd.plist $(BUILDROOT)$(DEFAULT_LAUNCHD_CONF); \ $(INSTALL_SCRIPT) init/cupsd-launchd.sh $(BUILDROOT)/System/Library/StartupItems/PrintingServices/PrintingServices; \ $(INSTALL_DATA) init/cups.plist $(BUILDROOT)/System/Library/StartupItems/PrintingServices/StartupParameters.plist; \ $(INSTALL_DIR) $(BUILDROOT)/System/Library/StartupItems/PrintingServices/Resources/English.lproj; \ $(INSTALL_DATA) init/cups.strings $(BUILDROOT)/System/Library/StartupItems/PrintingServices/Resources/English.lproj/Localizable.strings; \ else \ $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDDIR)/cups; \ fi \ fi # # Install source and header files... # installsrc: gnutar --dereference --exclude=CVS -cf - . | gnutar -C $(SRCROOT) -xf - installhdrs: (cd cups ; $(MAKE) $(MFLAGS) installhdrs) || exit 1;\ (cd filter ; $(MAKE) $(MFLAGS) installhdrs) || exit 1; # # Run the test suite... # check test: all echo Running CUPS test suite... cd test; ./run-stp-tests.sh # # Make software distributions using EPM (http://www.easysw.com/epm)... # EPMFLAGS = -v aix: epm $(EPMFLAGS) -f aix cups packaging/cups.list bsd: epm $(EPMFLAGS) -f bsd cups packaging/cups.list epm: epm $(EPMFLAGS) cups packaging/cups.list rpm: epm $(EPMFLAGS) -f rpm cups packaging/cups.list deb: epm $(EPMFLAGS) -f deb cups packaging/cups.list depot: epm $(EPMFLAGS) -f depot cups packaging/cups.list pkg: epm $(EPMFLAGS) -f pkg cups packaging/cups.list tardist: epm $(EPMFLAGS) -f tardist cups packaging/cups.list # # End of "$Id: Makefile 5023 2006-01-29 14:39:44Z mike $". #