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