]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - man/Makefile
<rdar://problem/5792631> dependency cycle in cups-144 / PrintingCore-250 / Applicatio...
[thirdparty/cups.git] / man / Makefile
index 0e93a080e8fb9a066bf970986db6d6ca1cff8934..8588d346ab155a0b3d3509c5b512159a82734706 100644 (file)
@@ -1,25 +1,16 @@
 #
-# "$Id: Makefile 4868 2005-12-05 16:59:11Z mike $"
+# "$Id: Makefile 6657 2007-07-13 01:01:14Z mike $"
 #
 #   Man page makefile for the Common UNIX Printing System (CUPS).
 #
-#   Copyright 1993-2005 by Easy Software Products.
+#   Copyright 2007-2008 by Apple Inc.
+#   Copyright 1993-2006 by Easy Software Products.
 #
 #   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 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
@@ -29,24 +20,44 @@ include ../Makedefs
 # Man pages...
 #
 
-MAN1   =       backend.$(MAN1EXT) \
+MAN1   =       cancel.$(MAN1EXT) \
                cups-config.$(MAN1EXT) \
+               cupstestdsc.$(MAN1EXT) \
                cupstestppd.$(MAN1EXT) \
-               filter.$(MAN1EXT) \
                lp.$(MAN1EXT) \
                lpoptions.$(MAN1EXT) \
                lppasswd.$(MAN1EXT) \
                lpq.$(MAN1EXT) \
                lprm.$(MAN1EXT) \
                lpr.$(MAN1EXT) \
-               lpstat.$(MAN1EXT)
+               lpstat.$(MAN1EXT) \
+               ppdc.$(MAN1EXT) \
+               ppdhtml.$(MAN1EXT) \
+               ppdi.$(MAN1EXT) \
+               ppdmerge.$(MAN1EXT) \
+               ppdpo.$(MAN1EXT)
 MAN5   =       classes.conf.$(MAN5EXT) \
+               client.conf.$(MAN5EXT) \
+               cups-snmp.conf.$(MAN5EXT) \
                cupsd.conf.$(MAN5EXT) \
+               mailto.conf.$(MAN5EXT) \
                mime.convs.$(MAN5EXT) \
                mime.types.$(MAN5EXT) \
-               printers.conf.$(MAN5EXT)
+               ppdcfile.$(MAN5EXT) \
+               printers.conf.$(MAN5EXT) \
+               subscriptions.conf.$(MAN5EXT)
+MAN7   =       backend.$(MAN7EXT) \
+               commandtoescpx.$(MAN7EXT) \
+               commandtopclx.$(MAN7EXT) \
+               filter.$(MAN7EXT) \
+               rastertoescpx.$(MAN7EXT) \
+               rastertopclx.$(MAN7EXT)
 MAN8   =       accept.$(MAN8EXT) \
                cupsaddsmb.$(MAN8EXT) \
+               cupsctl.$(MAN8EXT) \
+               cupsfilter.$(MAN8EXT) \
+               cups-deviced.$(MAN8EXT) \
+               cups-driverd.$(MAN8EXT) \
                cups-lpd.$(MAN8EXT) \
                cups-polld.$(MAN8EXT) \
                cupsd.$(MAN8EXT) \
@@ -61,7 +72,7 @@ MAN8  =       accept.$(MAN8EXT) \
 # Make everything...
 #
 
-all:   $(MAN1) $(MAN5) $(MAN8) html
+all:   $(MAN1) $(MAN5) $(MAN7) $(MAN8) html
 
 
 #
@@ -69,7 +80,20 @@ all: $(MAN1) $(MAN5) $(MAN8) html
 #
 
 clean:
-       $(RM) $(MAN1) $(MAN5) $(MAN8)
+       $(RM) mantohtml mantohtml.o
+       $(RM) $(MAN1) $(MAN5) $(MAN7) $(MAN8)
+       for file in $(MAN1); do \
+               $(RM) ../doc/help/man-`basename $$file .$(MAN1EXT)`.html; \
+       done
+       for file in $(MAN5); do \
+               $(RM) ../doc/help/man-`basename $$file .$(MAN5EXT)`.html; \
+       done
+       for file in $(MAN7); do \
+               $(RM) ../doc/help/man-`basename $$file .$(MAN7EXT)`.html; \
+       done
+       for file in $(MAN8); do \
+               $(RM) ../doc/help/man-`basename $$file .$(MAN8EXT)`.html; \
+       done
 
 
 #
@@ -80,23 +104,33 @@ depend:
 
 
 #
-# Install files...
+# Install all targets...
 #
 
-install:       all
-       $(INSTALL_DIR) $(MANDIR)/man1
+install:       all install-data install-headers install-libs install-exec
+
+
+#
+# Install data files...
+#
+
+install-data:
+       $(INSTALL_DIR) -m 755 $(MANDIR)/man1
        for file in $(MAN1); do \
                echo Installing $$file in $(MANDIR)/man1...; \
                $(INSTALL_MAN) $$file $(MANDIR)/man1; \
        done
-       $(RM) $(MANDIR)/man1/cancel.$(MAN1EXT)
-       $(LN) lp.$(MAN1EXT) $(MANDIR)/man1/cancel.$(MAN1EXT)
-       $(INSTALL_DIR) $(MANDIR)/man5
+       $(INSTALL_DIR) -m 755 $(MANDIR)/man5
        for file in $(MAN5); do \
                echo Installing $$file in $(MANDIR)/man5...; \
                $(INSTALL_MAN) $$file $(MANDIR)/man5; \
        done
-       $(INSTALL_DIR) $(AMANDIR)/man$(MAN8DIR)
+       $(INSTALL_DIR) -m 755 $(MANDIR)/man7
+       for file in $(MAN7); do \
+               echo Installing $$file in $(MANDIR)/man7...; \
+               $(INSTALL_MAN) $$file $(MANDIR)/man7; \
+       done
+       $(INSTALL_DIR) -m 755 $(AMANDIR)/man$(MAN8DIR)
        for file in $(MAN8); do \
                echo Installing $$file in $(AMANDIR)/man$(MAN8DIR)...; \
                $(INSTALL_MAN) $$file $(AMANDIR)/man$(MAN8DIR); \
@@ -107,16 +141,70 @@ install:  all
        $(LN) cupsenable.$(MAN8EXT) $(AMANDIR)/man$(MAN8DIR)/cupsdisable.$(MAN8EXT)
 
 
+#
+# Install programs...
+#
+
+install-exec:
+
+
+#
+# Install headers...
+#
+
+install-headers:
+
+
+#
+# Install libraries...
+#
+
+install-libs:
+
+
+#
+# Uninstall files...
+#
+
+uninstall:
+       for file in $(MAN1); do \
+               $(RM) $(MANDIR)/man1/$$file; \
+       done
+       -$(RMDIR) $(MANDIR)/man1
+       for file in $(MAN5); do \
+               $(RM) $(MANDIR)/man5/$$file; \
+       done
+       -$(RMDIR) $(MANDIR)/man5
+       for file in $(MAN7); do \
+               $(RM) $(MANDIR)/man7/$$file; \
+       done
+       -$(RMDIR) $(MANDIR)/man7
+       for file in $(MAN8); do \
+               $(RM) $(AMANDIR)/man$(MAN8DIR)/$$file; \
+       done
+       $(RM) $(AMANDIR)/man$(MAN8DIR)/reject.$(MAN8EXT)
+       $(RM) $(AMANDIR)/man$(MAN8DIR)/cupsdisable.$(MAN8EXT)
+       -$(RMDIR) $(AMANDIR)/man$(MAN8DIR)
+
+
 #
 # Make html versions of man pages...
 #
 
-html:  $(MAN1) $(MAN8) mantohtml
+html:  $(MAN1) $(MAN5) $(MAN7) $(MAN8) mantohtml
        echo Converting man pages to HTML...
        for file in $(MAN1); do \
                echo "    $$file..."; \
                ./mantohtml `basename $$file .$(MAN1EXT)`.man >../doc/help/man-`basename $$file .$(MAN1EXT)`.html; \
        done
+       for file in $(MAN5); do \
+               echo "    $$file..."; \
+               ./mantohtml `basename $$file .$(MAN5EXT)`.man >../doc/help/man-`basename $$file .$(MAN5EXT)`.html; \
+       done
+       for file in $(MAN7); do \
+               echo "    $$file..."; \
+               ./mantohtml `basename $$file .$(MAN7EXT)`.man >../doc/help/man-`basename $$file .$(MAN7EXT)`.html; \
+       done
        for file in $(MAN8); do \
                echo "    $$file..."; \
                ./mantohtml `basename $$file .$(MAN8EXT)`.man >../doc/help/man-`basename $$file .$(MAN8EXT)`.html; \
@@ -127,5 +215,5 @@ mantohtml:  mantohtml.o
 
 
 #
-# End of "$Id: Makefile 4868 2005-12-05 16:59:11Z mike $".
+# End of "$Id: Makefile 6657 2007-07-13 01:01:14Z mike $".
 #