]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - Makefile
Remove old files.
[thirdparty/cups.git] / Makefile
index 393e09571ba7505f5d144fc6d4da37935cfb7944..3b2c44eade67c24ab7610f1d41346e800f5c5dfa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,25 +1,16 @@
 #
-# "$Id: Makefile 6563 2007-06-18 22:18:46Z mike $"
+# "$Id: Makefile 6897 2007-08-30 06:11:59Z mike $"
 #
 #   Top-level Makefile for the Common UNIX Printing System (CUPS).
 #
+#   Copyright 2007-2008 by Apple Inc.
 #   Copyright 1997-2007 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
+#   property of Apple Inc. 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
+#   file is missing or damaged, see the license at "http://www.cups.org/".
 #
 
 include Makedefs
@@ -28,10 +19,10 @@ include Makedefs
 # Directories to make...
 #
 
-DIRS   =       cups backend berkeley cgi-bin filter locale man monitor \
-               notifier $(PDFTOPS) scheduler systemv test \
+DIRS   =       cups filter backend berkeley cgi-bin driver locale man monitor \
+               notifier ppdc scheduler systemv test \
                $(PHPDIR) \
-               conf data doc $(FONTS) ppd templates
+               conf data doc $(FONTS) templates
 
 
 #
@@ -40,6 +31,10 @@ DIRS =       cups backend berkeley cgi-bin filter locale man monitor \
 
 all:
        chmod +x cups-config
+       echo Using ALL_CFLAGS="$(ALL_CFLAGS)"
+       echo Using ALL_CXXFLAGS="$(ALL_CXXFLAGS)"
+       echo Using LDFLAGS="$(LDFLAGS)"
+       echo Using LIBS="$(LIBS)"
        for dir in $(DIRS); do\
                echo Making all in $$dir... ;\
                (cd $$dir ; $(MAKE) $(MFLAGS)) || exit 1;\
@@ -63,18 +58,17 @@ clean:
 
 distclean:     clean
        $(RM) Makedefs config.h config.log config.status
-       $(RM) cups-config conf/cupsd.conf conf/pam.std
-       $(RM) doc/help/ref-cupsd-conf.html doc/help/standard.html
-       $(RM) doc/index.html
-       $(RM) init/cups.sh init/cups-lpd
+       $(RM) cups-config
+       $(RM) conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf
+       $(RM) doc/help/ref-cupsd-conf.html doc/help/standard.html doc/index.html
+       $(RM) init/cups.sh init/cups-lpd init/org.cups.cups-lpd.plist
        $(RM) man/client.conf.man
        $(RM) man/cups-deviced.man man/cups-driverd.man
        $(RM) man/cups-lpd.man man/cupsaddsmb.man man/cupsd.man
        $(RM) man/cupsd.conf.man man/lpoptions.man
        $(RM) packaging/cups.list
-       $(RM) templates/edit-config.tmpl templates/header.tmpl
+       $(RM) templates/header.tmpl
        -$(RM) doc/*/index.html
-       -$(RM) templates/*/edit-config.tmpl
        -$(RM) templates/*/header.tmpl
        -$(RM) -r autom4te*.cache
 
@@ -99,13 +93,20 @@ ctags:
 
 
 #
-# Install object and target files...
+# Install everything...
+#
+
+install:       install-data install-headers install-libs install-exec
+
+
+#
+# Install data files...
 #
 
-install:       installhdrs
+install-data:
        for dir in $(DIRS); do\
-               echo Installing in $$dir... ;\
-               (cd $$dir; $(MAKE) $(MFLAGS) install) || exit 1;\
+               echo Installing data files in $$dir... ;\
+               (cd $$dir; $(MAKE) $(MFLAGS) install-data) || exit 1;\
        done
        echo Installing cups-config script...
        $(INSTALL_DIR) -m 755 $(BINDIR)
@@ -128,13 +129,7 @@ install:   installhdrs
        fi
        if test "x$(INITDIR)" = x -a "x$(INITDDIR)" != x; then \
                $(INSTALL_DIR) $(BUILDROOT)$(INITDDIR); \
-               if test "$(INITDDIR)" = "/System/Library/StartupItems/PrintingServices"; then \
-                       echo Installing StartupItems files...; \
-                       $(INSTALL_SCRIPT) init/PrintingServices $(BUILDROOT)$(INITDDIR)/PrintingServices; \
-                       $(INSTALL_DATA) init/StartupParameters.plist $(BUILDROOT)$(INITDDIR)/StartupParameters.plist; \
-                       $(INSTALL_DIR) $(BUILDROOT)$(INITDDIR)/Resources/English.lproj; \
-                       $(INSTALL_DATA) init/Localizable.strings $(BUILDROOT)$(INITDDIR)/Resources/English.lproj/Localizable.strings; \
-               elif test "$(INITDDIR)" = "/System/Library/LaunchDaemons"; then \
+               if test "$(INITDDIR)" = "/System/Library/LaunchDaemons"; then \
                        echo Installing LaunchDaemons configuration files...; \
                        $(INSTALL_DATA) init/org.cups.cupsd.plist $(BUILDROOT)$(DEFAULT_LAUNCHD_CONF); \
                        $(INSTALL_DATA) init/org.cups.cups-lpd.plist $(BUILDROOT)/System/Library/LaunchDaemons; \
@@ -179,17 +174,37 @@ install:  installhdrs
                $(INSTALL_DATA) desktop/cups-128.png $(BUILDROOT)$(ICONDIR)/hicolor/128x128/apps/cups.png; \
        fi
 
+#
+# Install header files...
+#
+
+install-headers:
+       for dir in $(DIRS); do\
+               echo Installing header files in $$dir... ;\
+               (cd $$dir; $(MAKE) $(MFLAGS) install-headers) || exit 1;\
+       done
+
 
 #
-# Install source and header files...
+# Install programs...
 #
 
-installsrc:
-       gnutar --dereference --exclude=.svn -cf - . | gnutar -C $(SRCROOT) -xf -
+install-exec:
+       for dir in $(DIRS); do\
+               echo Installing programs in $$dir... ;\
+               (cd $$dir; $(MAKE) $(MFLAGS) all install-exec) || exit 1;\
+       done
+
 
-installhdrs:
-       (cd cups ; $(MAKE) $(MFLAGS) installhdrs) || exit 1;\
-       (cd filter ; $(MAKE) $(MFLAGS) installhdrs) || exit 1;
+#
+# Install libraries...
+#
+
+install-libs:
+       for dir in $(DIRS); do\
+               echo Installing libraries in $$dir... ;\
+               (cd $$dir; $(MAKE) $(MFLAGS) all install-libs) || exit 1;\
+       done
 
 
 #
@@ -291,5 +306,5 @@ dist:       all
 
 
 #
-# End of "$Id: Makefile 6563 2007-06-18 22:18:46Z mike $".
+# End of "$Id: Makefile 6897 2007-08-30 06:11:59Z mike $".
 #