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