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