1# 2# Documentation makefile for CUPS. 3# 4# Copyright © 2020-2024 by OpenPrinting. 5# Copyright © 2007-2019 by Apple Inc. 6# Copyright © 1997-2007 by Easy Software Products. 7# 8# Licensed under Apache License v2.0. See the file "LICENSE" for more 9#s information. 10# 11 12include ../Makedefs 13 14# 15# Document files... 16# 17 18WEBPAGES = \ 19 apple-touch-icon.png \ 20 cups.css \ 21 cups-printable.css \ 22 index.html \ 23 robots.txt 24WEBIMAGES = \ 25 images/cups.png \ 26 images/wait.gif 27HELPIMAGES = \ 28 images/cups-block-diagram.png \ 29 images/cups-command-chain.png \ 30 images/cups-postscript-chain.png \ 31 images/cups-raster-chain.png \ 32 images/raster.png \ 33 images/raster-organization.png \ 34 images/sample-image.png \ 35 images/smiley.jpg 36HELPFILES = \ 37 help/accounting.html \ 38 help/admin.html \ 39 help/api-admin.html \ 40 help/api-filter.html \ 41 help/api-ppd.html \ 42 help/cgi.html \ 43 help/cupspm.html \ 44 help/encryption.html \ 45 help/firewalls.html \ 46 help/glossary.html \ 47 help/kerberos.html \ 48 help/license.html \ 49 help/man-backend.html \ 50 help/man-cancel.html \ 51 help/man-classes.conf.html \ 52 help/man-client.conf.html \ 53 help/man-cups.html \ 54 help/man-cups-config.html \ 55 help/man-cups-files.conf.html \ 56 help/man-cups-lpd.html \ 57 help/man-cups-snmp.html \ 58 help/man-cupsaccept.html \ 59 help/man-cupsd.conf.html \ 60 help/man-cupsd.html \ 61 help/man-cupsd-helper.html \ 62 help/man-cupsd-logs.html \ 63 help/man-cupsenable.html \ 64 help/man-cupstestppd.html \ 65 help/man-filter.html \ 66 help/man-ippevepcl.html \ 67 help/man-ippeveprinter.html \ 68 help/man-ipptool.html \ 69 help/man-ipptoolfile.html \ 70 help/man-lp.html \ 71 help/man-lpadmin.html \ 72 help/man-lpc.html \ 73 help/man-lpinfo.html \ 74 help/man-lpmove.html \ 75 help/man-lpoptions.html \ 76 help/man-lpq.html \ 77 help/man-lpr.html \ 78 help/man-lprm.html \ 79 help/man-lpstat.html \ 80 help/man-mime.convs.html \ 81 help/man-mime.types.html \ 82 help/man-notifier.html \ 83 help/man-ppdc.html \ 84 help/man-ppdhtml.html \ 85 help/man-ppdi.html \ 86 help/man-ppdmerge.html \ 87 help/man-ppdpo.html \ 88 help/man-printers.conf.html \ 89 help/man-subscriptions.conf.html \ 90 help/network.html \ 91 help/options.html \ 92 help/overview.html \ 93 help/policies.html \ 94 help/postscript-driver.html \ 95 help/ppd-compiler.html \ 96 help/raster-driver.html \ 97 help/ref-ppdcfile.html \ 98 help/security.html \ 99 help/sharing.html \ 100 help/spec-banner.html \ 101 help/spec-command.html \ 102 help/spec-design.html \ 103 help/spec-ipp.html \ 104 help/spec-ppd.html \ 105 help/spec-raster.html \ 106 help/spec-stp.html \ 107 help/translation.html 108 109 110# 111# Make all documents... 112# 113 114all: 115 116 117# 118# Make library targets... 119# 120 121libs: 122 123 124# 125# Make unit tests... 126# 127 128unittests: 129 130 131# 132# Remove all generated files... 133# 134 135clean: 136 137 138# 139# Dummy depend target... 140# 141 142depend: 143 144 145# 146# Install all targets... 147# 148 149install: all install-data install-headers install-libs install-exec 150 151 152# 153# Install data files... 154# 155 156install-data: $(INSTALL_LANGUAGES) 157 $(INSTALL_DIR) -m 755 $(DOCDIR) 158 for file in $(WEBPAGES); do \ 159 $(INSTALL_MAN) $$file $(DOCDIR); \ 160 done 161 $(INSTALL_DIR) -m 755 $(DOCDIR)/help 162 for file in $(HELPFILES); do \ 163 $(INSTALL_MAN) $$file $(DOCDIR)/help; \ 164 done 165 if test "x$(IPPFIND_MAN)" != x; then \ 166 $(INSTALL_MAN) help/man-ippfind.html $(DOCDIR)/help; \ 167 fi 168 $(INSTALL_DIR) -m 755 $(DOCDIR)/images 169 for file in $(WEBIMAGES) $(HELPIMAGES); do \ 170 $(INSTALL_MAN) $$file $(DOCDIR)/images; \ 171 done 172 173install-languages: 174 for lang in $(LANGUAGES); do \ 175 if test -d $$lang; then \ 176 $(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang; \ 177 $(INSTALL_DATA) $$lang/index.html $(DOCDIR)/$$lang; \ 178 $(INSTALL_DATA) $$lang/cups.css $(DOCDIR)/$$lang >/dev/null 2>&1 || true; \ 179 fi; \ 180 done 181 182install-langbundle: 183 184 185# 186# Install programs... 187# 188 189install-exec: 190 191 192# 193# Install headers... 194# 195 196install-headers: 197 198 199# 200# Install libraries... 201# 202 203install-libs: 204 205 206# 207# Uninstall all documentation files... 208# 209 210uninstall: $(UNINSTALL_LANGUAGES) 211 for file in $(WEBPAGES); do \ 212 $(RM) $(DOCDIR)/$$file; \ 213 done 214 for file in $(HELPFILES); do \ 215 $(RM) $(DOCDIR)/help/$$file; \ 216 done 217 if test "x$(IPPFIND_MAN)" != x; then \ 218 $(RM) $(DOCDIR)/help/man-ippfind.html; \ 219 done 220 for file in $(WEBIMAGES); do \ 221 $(RM) $(DOCDIR)/images/$$file; \ 222 done 223 -$(RMDIR) $(DOCDIR)/images 224 -$(RMDIR) $(DOCDIR)/help 225 -$(RMDIR) $(DOCDIR) 226 227uninstall-languages: 228 -for lang in $(LANGUAGES); do \ 229 $(RM) $(DOCDIR)/$$lang/index.html; \ 230 $(RM) $(DOCDIR)/$$lang/cups.css; \ 231 $(RMDIR) $(DOCDIR)/$$lang; \ 232 done 233 234install-langbundle: 235