blob: 505701dbd938fa4ed6b85200f04f899157cd4538 [file] [log] [blame]
jlovellef416fc2006-01-13 01:51:53 +00001#
msweet969af932014-03-28 15:55:05 +00002# Documentation makefile for CUPS.
jlovellef416fc2006-01-13 01:51:53 +00003#
Michael R Sweetd46dbe12019-03-20 09:59:24 -04004# Copyright © 2007-2019 by Apple Inc.
5# Copyright © 1997-2007 by Easy Software Products.
jlovellef416fc2006-01-13 01:51:53 +00006#
Michael R Sweetd46dbe12019-03-20 09:59:24 -04007# Licensed under Apache License v2.0. See the file "LICENSE" for more
8#s information.
jlovellef416fc2006-01-13 01:51:53 +00009#
10
11include ../Makedefs
12
13#
14# Document files...
15#
16
jlovell4744bd92006-03-04 15:56:42 +000017WEBPAGES = \
msweetdfc45c12013-10-21 21:41:21 +000018 apple-touch-icon.png \
jlovell4744bd92006-03-04 15:56:42 +000019 cups.css \
20 cups-printable.css \
jlovell4744bd92006-03-04 15:56:42 +000021 index.html \
22 robots.txt
jlovell4744bd92006-03-04 15:56:42 +000023WEBIMAGES = \
msweet4b3f67f2008-11-14 21:04:14 +000024 images/color-wheel.png \
msweet2e4ff8a2007-10-17 20:05:25 +000025 images/cups.png \
msweet2e4ff8a2007-10-17 20:05:25 +000026 images/cups-icon.png \
msweet7cf59152010-09-22 22:13:21 +000027 images/generic.png \
msweet2e4ff8a2007-10-17 20:05:25 +000028 images/left.gif \
msweet2e4ff8a2007-10-17 20:05:25 +000029 images/right.gif \
30 images/sel.gif \
msweet2e4ff8a2007-10-17 20:05:25 +000031 images/unsel.gif \
msweet58dc1932008-10-08 22:50:16 +000032 images/wait.gif
msweetf11a9482009-05-08 18:38:44 +000033HELPIMAGES = \
msweet393ac6a2009-05-22 23:56:34 +000034 images/cups-block-diagram.png \
msweetf11a9482009-05-08 18:38:44 +000035 images/cups-command-chain.png \
36 images/cups-postscript-chain.png \
37 images/cups-raster-chain.png \
38 images/raster.png \
msweet02684882011-01-17 23:54:15 +000039 images/raster-organization.png \
40 images/sample-image.png \
msweetf11a9482009-05-08 18:38:44 +000041 images/smiley.jpg
jlovellef416fc2006-01-13 01:51:53 +000042HELPFILES = \
jlovell09a101d2007-06-23 05:26:17 +000043 help/accounting.html \
Michael Sweetf05177e2017-12-06 23:50:36 -050044 help/admin.html \
Michael Sweetdffa3c72016-05-25 11:55:27 -040045 help/api-admin.html \
jlovellef416fc2006-01-13 01:51:53 +000046 help/api-filter.html \
jlovellef416fc2006-01-13 01:51:53 +000047 help/api-ppd.html \
jlovellb423cd42006-02-28 17:54:14 +000048 help/api-raster.html \
jlovell4744bd92006-03-04 15:56:42 +000049 help/cgi.html \
Michael Sweet798d6e22017-04-30 00:31:04 -040050 help/cupspm.html \
Michael Sweet0ebe8e72016-09-19 22:09:55 -040051 help/encryption.html \
Michael R Sweet67091b12017-12-14 09:13:09 -050052 help/firewalls.html \
jlovell4744bd92006-03-04 15:56:42 +000053 help/glossary.html \
msweet355e94d2007-07-26 22:45:43 +000054 help/kerberos.html \
jlovell4744bd92006-03-04 15:56:42 +000055 help/license.html \
jlovellef416fc2006-01-13 01:51:53 +000056 help/man-backend.html \
jlovellbd7854c2006-02-20 18:43:55 +000057 help/man-cancel.html \
msweetda516502014-04-15 20:59:56 +000058 help/man-classes.conf.html \
msweet7131e282014-04-15 16:31:11 +000059 help/man-client.conf.html \
msweet969af932014-03-28 15:55:05 +000060 help/man-cups.html \
jlovellef416fc2006-01-13 01:51:53 +000061 help/man-cups-config.html \
msweetda516502014-04-15 20:59:56 +000062 help/man-cups-files.conf.html \
jlovellef416fc2006-01-13 01:51:53 +000063 help/man-cups-lpd.html \
msweetf3c17242012-04-23 22:44:16 +000064 help/man-cups-snmp.html \
msweet969af932014-03-28 15:55:05 +000065 help/man-cupsaccept.html \
msweetda516502014-04-15 20:59:56 +000066 help/man-cupsd.conf.html \
jlovell4744bd92006-03-04 15:56:42 +000067 help/man-cupsd.html \
msweet7131e282014-04-15 16:31:11 +000068 help/man-cupsd-helper.html \
msweet25d0c3f2014-06-11 15:38:28 +000069 help/man-cupsd-logs.html \
jlovell4744bd92006-03-04 15:56:42 +000070 help/man-cupsenable.html \
jlovellef416fc2006-01-13 01:51:53 +000071 help/man-cupstestppd.html \
72 help/man-filter.html \
Michael R Sweetefb349b2019-03-22 13:21:05 -040073 help/man-ippevepcl.html \
Michael R Sweetd46dbe12019-03-20 09:59:24 -040074 help/man-ippeveprinter.html \
msweetaaf19ab2010-04-07 07:11:03 +000075 help/man-ipptool.html \
76 help/man-ipptoolfile.html \
jlovell4744bd92006-03-04 15:56:42 +000077 help/man-lp.html \
jlovellef416fc2006-01-13 01:51:53 +000078 help/man-lpadmin.html \
79 help/man-lpc.html \
jlovellef416fc2006-01-13 01:51:53 +000080 help/man-lpinfo.html \
81 help/man-lpmove.html \
82 help/man-lpoptions.html \
jlovellef416fc2006-01-13 01:51:53 +000083 help/man-lpq.html \
84 help/man-lpr.html \
85 help/man-lprm.html \
86 help/man-lpstat.html \
jlovellbd7854c2006-02-20 18:43:55 +000087 help/man-mime.convs.html \
88 help/man-mime.types.html \
msweet178cb732009-05-13 22:29:41 +000089 help/man-notifier.html \
msweet28b9d132008-10-17 22:12:14 +000090 help/man-ppdc.html \
91 help/man-ppdhtml.html \
92 help/man-ppdi.html \
93 help/man-ppdmerge.html \
94 help/man-ppdpo.html \
msweetda516502014-04-15 20:59:56 +000095 help/man-printers.conf.html \
96 help/man-subscriptions.conf.html \
jlovellef416fc2006-01-13 01:51:53 +000097 help/network.html \
jlovell4744bd92006-03-04 15:56:42 +000098 help/options.html \
jlovellef416fc2006-01-13 01:51:53 +000099 help/overview.html \
jlovell8ca02f32006-07-20 22:59:35 +0000100 help/policies.html \
msweet28b9d132008-10-17 22:12:14 +0000101 help/postscript-driver.html \
102 help/ppd-compiler.html \
msweete4572d52008-10-27 21:56:38 +0000103 help/raster-driver.html \
msweetbdd6c452008-05-21 01:15:17 +0000104 help/ref-ppdcfile.html \
jlovell4744bd92006-03-04 15:56:42 +0000105 help/security.html \
msweetd2354e62009-01-14 19:55:19 +0000106 help/sharing.html \
msweet1f6f3db2008-09-29 17:17:42 +0000107 help/spec-banner.html \
jlovellb423cd42006-02-28 17:54:14 +0000108 help/spec-command.html \
jlovell4744bd92006-03-04 15:56:42 +0000109 help/spec-design.html \
jlovellfa73b222006-01-26 21:39:43 +0000110 help/spec-ipp.html \
jlovellef416fc2006-01-13 01:51:53 +0000111 help/spec-ppd.html \
jlovell4744bd92006-03-04 15:56:42 +0000112 help/spec-raster.html \
113 help/spec-stp.html \
msweet5f1456a2014-06-16 15:33:00 +0000114 help/translation.html
jlovellef416fc2006-01-13 01:51:53 +0000115
116
117#
118# Make all documents...
119#
120
121all:
122
123
124#
msweetc9fc04c2008-05-15 01:42:36 +0000125# Make library targets...
126#
127
128libs:
129
130
131#
msweet5f64df22008-08-27 22:04:19 +0000132# Make unit tests...
133#
134
135unittests:
136
137
138#
jlovellef416fc2006-01-13 01:51:53 +0000139# Remove all generated files...
140#
141
142clean:
143
144
145#
jlovell757d2ca2006-03-08 00:32:35 +0000146# Dummy depend target...
147#
148
149depend:
150
151
152#
msweet50fe7202008-03-21 23:46:46 +0000153# Install all targets...
jlovellef416fc2006-01-13 01:51:53 +0000154#
155
msweet50fe7202008-03-21 23:46:46 +0000156install: all install-data install-headers install-libs install-exec
157
158
159#
160# Install data files...
161#
162
msweetc168a832009-01-09 23:33:14 +0000163install-data: $(INSTALL_LANGUAGES)
jlovellbd7854c2006-02-20 18:43:55 +0000164 $(INSTALL_DIR) -m 755 $(DOCDIR)
jlovellef416fc2006-01-13 01:51:53 +0000165 for file in $(WEBPAGES); do \
166 $(INSTALL_MAN) $$file $(DOCDIR); \
167 done
jlovellbd7854c2006-02-20 18:43:55 +0000168 $(INSTALL_DIR) -m 755 $(DOCDIR)/help
jlovellef416fc2006-01-13 01:51:53 +0000169 for file in $(HELPFILES); do \
170 $(INSTALL_MAN) $$file $(DOCDIR)/help; \
171 done
Michael R Sweetd46dbe12019-03-20 09:59:24 -0400172 if test "x$(IPPFIND_MAN)" != x; then \
Michael R Sweetef6de4e2019-04-17 17:38:30 -0400173 $(INSTALL_MAN) help/man-ippfind.html $(DOCDIR)/help; \
Michael R Sweeta9f52142019-04-17 17:36:13 -0400174 fi
jlovellbd7854c2006-02-20 18:43:55 +0000175 $(INSTALL_DIR) -m 755 $(DOCDIR)/images
msweetf11a9482009-05-08 18:38:44 +0000176 for file in $(WEBIMAGES) $(HELPIMAGES); do \
jlovellef416fc2006-01-13 01:51:53 +0000177 $(INSTALL_MAN) $$file $(DOCDIR)/images; \
178 done
jlovelled486912006-06-22 20:01:18 +0000179
180install-languages:
jlovellbd7854c2006-02-20 18:43:55 +0000181 for lang in $(LANGUAGES); do \
msweet568fa3f2008-02-28 23:00:58 +0000182 if test -d $$lang; then \
msweetc168a832009-01-09 23:33:14 +0000183 $(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang; \
msweetb226ab92009-10-07 18:20:31 +0000184 $(INSTALL_DATA) $$lang/index.html $(DOCDIR)/$$lang; \
185 $(INSTALL_DATA) $$lang/cups.css $(DOCDIR)/$$lang >/dev/null 2>&1 || true; \
jlovellc0e1af82007-04-02 15:56:16 +0000186 fi; \
jlovellbd7854c2006-02-20 18:43:55 +0000187 done
jlovellef416fc2006-01-13 01:51:53 +0000188
msweet0837b7e2010-11-30 03:16:24 +0000189install-langbundle:
190
jlovellef416fc2006-01-13 01:51:53 +0000191
192#
msweet50fe7202008-03-21 23:46:46 +0000193# 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#
msweetc168a832009-01-09 23:33:14 +0000214# Uninstall all documentation files...
jlovell757d2ca2006-03-08 00:32:35 +0000215#
216
jlovelled486912006-06-22 20:01:18 +0000217uninstall: $(UNINSTALL_LANGUAGES)
jlovell757d2ca2006-03-08 00:32:35 +0000218 for file in $(WEBPAGES); do \
219 $(RM) $(DOCDIR)/$$file; \
220 done
221 for file in $(HELPFILES); do \
Michael R Sweetd46dbe12019-03-20 09:59:24 -0400222 $(RM) $(DOCDIR)/help/$$file; \
223 done
224 if test "x$(IPPFIND_MAN)" != x; then \
225 $(RM) $(DOCDIR)/help/man-ippfind.html; \
jlovell757d2ca2006-03-08 00:32:35 +0000226 done
msweet2e4ff8a2007-10-17 20:05:25 +0000227 for file in $(WEBIMAGES); do \
Michael R Sweetd46dbe12019-03-20 09:59:24 -0400228 $(RM) $(DOCDIR)/images/$$file; \
jlovell757d2ca2006-03-08 00:32:35 +0000229 done
jlovelled486912006-06-22 20:01:18 +0000230 -$(RMDIR) $(DOCDIR)/images
231 -$(RMDIR) $(DOCDIR)/help
232 -$(RMDIR) $(DOCDIR)
233
234uninstall-languages:
jlovell757d2ca2006-03-08 00:32:35 +0000235 -for lang in $(LANGUAGES); do \
236 $(RM) $(DOCDIR)/$$lang/index.html; \
jlovellc0e1af82007-04-02 15:56:16 +0000237 $(RM) $(DOCDIR)/$$lang/cups.css; \
jlovell757d2ca2006-03-08 00:32:35 +0000238 $(RMDIR) $(DOCDIR)/$$lang; \
239 done
jlovell757d2ca2006-03-08 00:32:35 +0000240
msweet0837b7e2010-11-30 03:16:24 +0000241install-langbundle: