]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - doc/Makefile
Greatly simplify the man page handling.
[thirdparty/cups.git] / doc / Makefile
index 5562d2a8b8c1916477a356fd9dc98b9535518b31..505701dbd938fa4ed6b85200f04f899157cd4538 100644 (file)
@@ -1,25 +1,11 @@
 #
-# "$Id: Makefile 5328 2006-03-23 20:23:19Z mike $"
+# Documentation makefile for CUPS.
 #
-#   Documentation makefile for the Common UNIX Printing System (CUPS).
+# Copyright © 2007-2019 by Apple Inc.
+# Copyright © 1997-2007 by Easy Software Products.
 #
-#   Copyright 1997-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
+# Licensed under Apache License v2.0.  See the file "LICENSE" for more
+#s information.
 #
 
 include ../Makedefs
@@ -29,150 +15,103 @@ include ../Makedefs
 #
 
 WEBPAGES       =       \
+                       apple-touch-icon.png \
                        cups.css \
                        cups-printable.css \
-                       favicon.ico \
                        index.html \
                        robots.txt
-WEBBUTTONS     =       \
-                       images/button-accept-jobs.gif \
-                       images/button-add-class.gif \
-                       images/button-add-printer.gif \
-                       images/button-add-this-printer.gif \
-                       images/button-cancel-all-jobs.gif \
-                       images/button-cancel-job.gif \
-                       images/button-change-settings.gif \
-                       images/button-clean-print-heads.gif \
-                       images/button-clear.gif \
-                       images/button-continue.gif \
-                       images/button-delete-class.gif \
-                       images/button-delete-printer.gif \
-                       images/button-edit-configuration-file.gif \
-                       images/button-export-samba.gif \
-                       images/button-help.gif \
-                       images/button-hold-job.gif \
-                       images/button-manage-classes.gif \
-                       images/button-manage-jobs.gif \
-                       images/button-manage-printers.gif \
-                       images/button-manage-server.gif \
-                       images/button-modify-class.gif \
-                       images/button-modify-printer.gif \
-                       images/button-move-job.gif \
-                       images/button-move-jobs.gif \
-                       images/button-print-self-test-page.gif \
-                       images/button-print-test-page.gif \
-                       images/button-publish-printer.gif \
-                       images/button-reject-jobs.gif \
-                       images/button-release-job.gif \
-                       images/button-restart-job.gif \
-                       images/button-save-changes.gif \
-                       images/button-search.gif \
-                       images/button-set-allowed-users.gif \
-                       images/button-set-as-default.gif \
-                       images/button-set-printer-options.gif \
-                       images/button-show-active.gif \
-                       images/button-show-all.gif \
-                       images/button-show-completed.gif \
-                       images/button-show-next.gif \
-                       images/button-show-previous.gif \
-                       images/button-sort-ascending.gif \
-                       images/button-sort-descending.gif \
-                       images/button-start-class.gif \
-                       images/button-start-printer.gif \
-                       images/button-stop-class.gif \
-                       images/button-stop-printer.gif \
-                       images/button-unpublish-printer.gif \
-                       images/button-use-default-config.gif \
-                       images/button-view-access-log.gif \
-                       images/button-view-error-log.gif \
-                       images/button-view-page-log.gif \
-                       images/button-view-printable-version.gif
 WEBIMAGES      =       \
-                       images/bottom-left.gif \
-                       images/bottom-right.gif \
-                       images/classes.gif \
-                       images/cups-block-diagram.gif \
-                       images/esp-logo.gif \
-                       images/happy.gif \
-                       images/logo.gif \
-                       images/printer-idle.gif \
-                       images/printer-processing.gif \
-                       images/printer-stopped.gif \
-                       images/smiley.jpg \
-                       images/tab-left.gif \
-                       images/tab-right.gif \
-                       images/top-left.gif \
-                       images/top-middle.gif \
-                       images/top-right.gif \
-                       images/web-add-this-printer.gif \
-                       images/web-password.gif \
-                       images/web-printer-driver.gif \
-                       images/web-printer-status.gif \
-                       images/web-set-printer-options.gif \
-                       images/web-test-page.gif
+                       images/color-wheel.png \
+                       images/cups.png \
+                       images/cups-icon.png \
+                       images/generic.png \
+                       images/left.gif \
+                       images/right.gif \
+                       images/sel.gif \
+                       images/unsel.gif \
+                       images/wait.gif
+HELPIMAGES     =       \
+                       images/cups-block-diagram.png \
+                       images/cups-command-chain.png \
+                       images/cups-postscript-chain.png \
+                       images/cups-raster-chain.png \
+                       images/raster.png \
+                       images/raster-organization.png \
+                       images/sample-image.png \
+                       images/smiley.jpg
 HELPFILES      =       \
-                       help/api-array.html \
-                       help/api-cups.html \
-                       help/api-filedir.html \
+                       help/accounting.html \
+                       help/admin.html \
+                       help/api-admin.html \
                        help/api-filter.html \
-                       help/api-httpipp.html \
                        help/api-ppd.html \
                        help/api-raster.html \
                        help/cgi.html \
+                       help/cupspm.html \
+                       help/encryption.html \
+                       help/firewalls.html \
                        help/glossary.html \
+                       help/kerberos.html \
                        help/license.html \
-                       help/man-accept.html \
                        help/man-backend.html \
                        help/man-cancel.html \
                        help/man-classes.conf.html \
                        help/man-client.conf.html \
+                       help/man-cups.html \
                        help/man-cups-config.html \
+                       help/man-cups-files.conf.html \
                        help/man-cups-lpd.html \
-                       help/man-cups-polld.html \
-                       help/man-cupsaddsmb.html \
+                       help/man-cups-snmp.html \
+                       help/man-cupsaccept.html \
                        help/man-cupsd.conf.html \
                        help/man-cupsd.html \
+                       help/man-cupsd-helper.html \
+                       help/man-cupsd-logs.html \
                        help/man-cupsenable.html \
-                       help/man-cupstestdsc.html \
                        help/man-cupstestppd.html \
                        help/man-filter.html \
+                       help/man-ippevepcl.html \
+                       help/man-ippeveprinter.html \
+                       help/man-ipptool.html \
+                       help/man-ipptoolfile.html \
                        help/man-lp.html \
                        help/man-lpadmin.html \
                        help/man-lpc.html \
                        help/man-lpinfo.html \
                        help/man-lpmove.html \
                        help/man-lpoptions.html \
-                       help/man-lppasswd.html \
                        help/man-lpq.html \
                        help/man-lpr.html \
                        help/man-lprm.html \
                        help/man-lpstat.html \
                        help/man-mime.convs.html \
                        help/man-mime.types.html \
+                       help/man-notifier.html \
+                       help/man-ppdc.html \
+                       help/man-ppdhtml.html \
+                       help/man-ppdi.html \
+                       help/man-ppdmerge.html \
+                       help/man-ppdpo.html \
                        help/man-printers.conf.html \
+                       help/man-subscriptions.conf.html \
                        help/network.html \
                        help/options.html \
                        help/overview.html \
-                       help/ref-access_log.html \
-                       help/ref-classes-conf.html \
-                       help/ref-client-conf.html \
-                       help/ref-cupsd-conf.html \
-                       help/ref-error_log.html \
-                       help/ref-page_log.html \
-                       help/ref-printers-conf.html \
-                       help/ref-subscriptions-conf.html \
+                       help/policies.html \
+                       help/postscript-driver.html \
+                       help/ppd-compiler.html \
+                       help/raster-driver.html \
+                       help/ref-ppdcfile.html \
                        help/security.html \
-                       help/spec-cmp.html \
+                       help/sharing.html \
+                       help/spec-banner.html \
                        help/spec-command.html \
                        help/spec-design.html \
                        help/spec-ipp.html \
-                       help/spec-postscript.html \
                        help/spec-ppd.html \
                        help/spec-raster.html \
                        help/spec-stp.html \
-                       help/standard.html \
-                       help/translation.html \
-                       help/whatsnew.html
+                       help/translation.html
 
 
 #
@@ -182,6 +121,20 @@ HELPFILES  =       \
 all:
 
 
+#
+# Make library targets...
+#
+
+libs:
+
+
+#
+# Make unit tests...
+#
+
+unittests:
+
+
 #
 # Remove all generated files...
 #
@@ -197,10 +150,17 @@ depend:
 
 
 #
-# Install all documentation files...
+# Install all targets...
 #
 
-install:       all
+install:       all install-data install-headers install-libs install-exec
+
+
+#
+# Install data files...
+#
+
+install-data: $(INSTALL_LANGUAGES)
        $(INSTALL_DIR) -m 755 $(DOCDIR)
        for file in $(WEBPAGES); do \
                $(INSTALL_MAN) $$file $(DOCDIR); \
@@ -209,50 +169,73 @@ install:  all
        for file in $(HELPFILES); do \
                $(INSTALL_MAN) $$file $(DOCDIR)/help; \
        done
+       if test "x$(IPPFIND_MAN)" != x; then \
+               $(INSTALL_MAN) help/man-ippfind.html $(DOCDIR)/help; \
+       fi
        $(INSTALL_DIR) -m 755 $(DOCDIR)/images
-       for file in $(WEBIMAGES) $(WEBBUTTONS); do \
+       for file in $(WEBIMAGES) $(HELPIMAGES); do \
                $(INSTALL_MAN) $$file $(DOCDIR)/images; \
        done
+
+install-languages:
        for lang in $(LANGUAGES); do \
-               $(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang/images; \
-               if test -f $$lang/index.html; then \
-                       $(INSTALL_MAN) $$lang/index.html $(DOCDIR)/$$lang; \
+               if test -d $$lang; then \
+                       $(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang; \
+                       $(INSTALL_DATA) $$lang/index.html $(DOCDIR)/$$lang; \
+                       $(INSTALL_DATA) $$lang/cups.css $(DOCDIR)/$$lang >/dev/null 2>&1 || true; \
                fi; \
-               for file in $(WEBBUTTONS); do \
-                       if test -f $$lang/$$file; then \
-                               $(INSTALL_MAN) $$lang/$$file $(DOCDIR)/$$lang/images; \
-                       fi; \
-               done \
        done
 
+install-langbundle:
+
+
+#
+# Install programs...
+#
+
+install-exec:
+
+
+#
+# Install headers...
+#
+
+install-headers:
+
+
+#
+# Install libraries...
+#
+
+install-libs:
+
 
 #
-# Unnstall all documentation files...
+# Uninstall all documentation files...
 #
 
-uninstall:
+uninstall: $(UNINSTALL_LANGUAGES)
        for file in $(WEBPAGES); do \
                $(RM) $(DOCDIR)/$$file; \
        done
        for file in $(HELPFILES); do \
-               $(INSTALL_MAN) $(DOCDIR)/help/$$file; \
+               $(RM) $(DOCDIR)/help/$$file; \
        done
-       for file in $(WEBIMAGES) $(WEBBUTTONS); do \
-               $(INSTALL_MAN) $(DOCDIR)/images/$$file; \
+       if test "x$(IPPFIND_MAN)" != x; then \
+               $(RM) $(DOCDIR)/help/man-ippfind.html; \
        done
-       -for lang in $(LANGUAGES); do \
-               $(RM) $(DOCDIR)/$$lang/index.html; \
-               for file in $(WEBBUTTONS); do \
-                       $(RM) $(DOCDIR)/$$lang/images/$$file; \
-               done \
-               $(RMDIR) $(DOCDIR)/$$lang/images; \
-               $(RMDIR) $(DOCDIR)/$$lang; \
+       for file in $(WEBIMAGES); do \
+               $(RM) $(DOCDIR)/images/$$file; \
        done
        -$(RMDIR) $(DOCDIR)/images
        -$(RMDIR) $(DOCDIR)/help
        -$(RMDIR) $(DOCDIR)
 
+uninstall-languages:
+       -for lang in $(LANGUAGES); do \
+               $(RM) $(DOCDIR)/$$lang/index.html; \
+               $(RM) $(DOCDIR)/$$lang/cups.css; \
+               $(RMDIR) $(DOCDIR)/$$lang; \
+       done
 
-#
-# End of Makefile.
-#
+install-langbundle: