]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
969af935 | 2 | # Documentation makefile for CUPS. |
ef416fc2 | 3 | # |
d825017a | 4 | # Copyright 2007-2016 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 \ |
dffa3c74 | 43 | help/api-admin.html \ |
ef416fc2 | 44 | help/api-filter.html \ |
ef416fc2 | 45 | help/api-ppd.html \ |
b423cd4c | 46 | help/api-raster.html \ |
4744bd90 | 47 | help/cgi.html \ |
798d6e29 | 48 | help/cupspm.html \ |
0ebe8e7c | 49 | help/encryption.html \ |
4744bd90 | 50 | help/glossary.html \ |
355e94dc | 51 | help/kerberos.html \ |
4744bd90 | 52 | help/license.html \ |
ef416fc2 | 53 | help/man-backend.html \ |
bd7854cb | 54 | help/man-cancel.html \ |
da516501 | 55 | help/man-classes.conf.html \ |
7131e285 | 56 | help/man-client.conf.html \ |
969af935 | 57 | help/man-cups.html \ |
ef416fc2 | 58 | help/man-cups-config.html \ |
da516501 | 59 | help/man-cups-files.conf.html \ |
ef416fc2 | 60 | help/man-cups-lpd.html \ |
f3c17241 | 61 | help/man-cups-snmp.html \ |
969af935 | 62 | help/man-cupsaccept.html \ |
4744bd90 | 63 | help/man-cupsaddsmb.html \ |
da516501 | 64 | help/man-cupsd.conf.html \ |
4744bd90 | 65 | help/man-cupsd.html \ |
7131e285 | 66 | help/man-cupsd-helper.html \ |
25d0c3fe | 67 | help/man-cupsd-logs.html \ |
4744bd90 | 68 | help/man-cupsenable.html \ |
80ca4592 | 69 | help/man-cupstestdsc.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 \ |
f11a948a | 108 | help/spec-pdf.html \ |
f7deaa1a | 109 | help/spec-postscript.html \ |
ef416fc2 | 110 | help/spec-ppd.html \ |
4744bd90 | 111 | help/spec-raster.html \ |
112 | help/spec-stp.html \ | |
5f1456af | 113 | help/translation.html |
ef416fc2 | 114 | |
115 | ||
116 | # | |
117 | # Make all documents... | |
118 | # | |
119 | ||
120 | all: | |
121 | ||
122 | ||
c9fc04c6 MS |
123 | # |
124 | # Make library targets... | |
125 | # | |
126 | ||
127 | libs: | |
128 | ||
129 | ||
5f64df29 MS |
130 | # |
131 | # Make unit tests... | |
132 | # | |
133 | ||
134 | unittests: | |
135 | ||
136 | ||
ef416fc2 | 137 | # |
138 | # Remove all generated files... | |
139 | # | |
140 | ||
141 | clean: | |
142 | ||
143 | ||
757d2cad | 144 | # |
145 | # Dummy depend target... | |
146 | # | |
147 | ||
148 | depend: | |
149 | ||
150 | ||
ef416fc2 | 151 | # |
50fe7201 | 152 | # Install all targets... |
ef416fc2 | 153 | # |
154 | ||
50fe7201 MS |
155 | install: all install-data install-headers install-libs install-exec |
156 | ||
157 | ||
158 | # | |
159 | # Install data files... | |
160 | # | |
161 | ||
c168a833 | 162 | install-data: $(INSTALL_LANGUAGES) |
bd7854cb | 163 | $(INSTALL_DIR) -m 755 $(DOCDIR) |
ef416fc2 | 164 | for file in $(WEBPAGES); do \ |
165 | $(INSTALL_MAN) $$file $(DOCDIR); \ | |
166 | done | |
bd7854cb | 167 | $(INSTALL_DIR) -m 755 $(DOCDIR)/help |
ef416fc2 | 168 | for file in $(HELPFILES); do \ |
169 | $(INSTALL_MAN) $$file $(DOCDIR)/help; \ | |
170 | done | |
bd7854cb | 171 | $(INSTALL_DIR) -m 755 $(DOCDIR)/images |
f11a948a | 172 | for file in $(WEBIMAGES) $(HELPIMAGES); do \ |
ef416fc2 | 173 | $(INSTALL_MAN) $$file $(DOCDIR)/images; \ |
174 | done | |
ed486911 | 175 | |
176 | install-languages: | |
bd7854cb | 177 | for lang in $(LANGUAGES); do \ |
568fa3fa | 178 | if test -d $$lang; then \ |
c168a833 | 179 | $(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang; \ |
b226ab99 MS |
180 | $(INSTALL_DATA) $$lang/index.html $(DOCDIR)/$$lang; \ |
181 | $(INSTALL_DATA) $$lang/cups.css $(DOCDIR)/$$lang >/dev/null 2>&1 || true; \ | |
c0e1af83 | 182 | fi; \ |
757d2cad | 183 | done |
184 | ||
0837b7e8 MS |
185 | install-langbundle: |
186 | ||
757d2cad | 187 | |
50fe7201 MS |
188 | # |
189 | # Install programs... | |
190 | # | |
191 | ||
192 | install-exec: | |
193 | ||
194 | ||
195 | # | |
196 | # Install headers... | |
197 | # | |
198 | ||
199 | install-headers: | |
200 | ||
201 | ||
202 | # | |
203 | # Install libraries... | |
204 | # | |
205 | ||
206 | install-libs: | |
207 | ||
208 | ||
757d2cad | 209 | # |
c168a833 | 210 | # Uninstall all documentation files... |
757d2cad | 211 | # |
212 | ||
ed486911 | 213 | uninstall: $(UNINSTALL_LANGUAGES) |
757d2cad | 214 | for file in $(WEBPAGES); do \ |
215 | $(RM) $(DOCDIR)/$$file; \ | |
216 | done | |
217 | for file in $(HELPFILES); do \ | |
50fe7201 | 218 | $(RM) $(DOCDIR)/$$file; \ |
757d2cad | 219 | done |
2e4ff8af | 220 | for file in $(WEBIMAGES); do \ |
50fe7201 | 221 | $(RM) $(DOCDIR)/$$file; \ |
757d2cad | 222 | done |
ed486911 | 223 | -$(RMDIR) $(DOCDIR)/images |
224 | -$(RMDIR) $(DOCDIR)/help | |
225 | -$(RMDIR) $(DOCDIR) | |
226 | ||
227 | uninstall-languages: | |
757d2cad | 228 | -for lang in $(LANGUAGES); do \ |
229 | $(RM) $(DOCDIR)/$$lang/index.html; \ | |
c0e1af83 | 230 | $(RM) $(DOCDIR)/$$lang/cups.css; \ |
757d2cad | 231 | $(RMDIR) $(DOCDIR)/$$lang; \ |
bd7854cb | 232 | done |
ef416fc2 | 233 | |
0837b7e8 MS |
234 | install-langbundle: |
235 | ||
ef416fc2 | 236 | |
f11a948a MS |
237 | # |
238 | # Install the docset bits locally... | |
239 | # | |
240 | ||
241 | docset: | |
242 | cp $(HELPFILES) ../org.cups.docset/Contents/Resources/Documentation/help | |
243 | cp cups-printable.css ../org.cups.docset/Contents/Resources/Documentation | |
244 | cp $(HELPIMAGES) ../org.cups.docset/Contents/Resources/Documentation/images |