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