]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
969af935 | 2 | # Documentation makefile for CUPS. |
ef416fc2 | 3 | # |
969af935 MS |
4 | # Copyright 2007-2014 by Apple Inc. |
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 \ |
f11a948a | 48 | help/api-cgi.html \ |
ef416fc2 | 49 | help/api-cups.html \ |
50 | help/api-filedir.html \ | |
51 | help/api-filter.html \ | |
52 | help/api-httpipp.html \ | |
f11a948a | 53 | help/api-mime.html \ |
5a738aea | 54 | help/api-overview.html \ |
ef416fc2 | 55 | help/api-ppd.html \ |
f11a948a | 56 | help/api-ppdc.html \ |
b423cd4c | 57 | help/api-raster.html \ |
4744bd90 | 58 | help/cgi.html \ |
59 | help/glossary.html \ | |
355e94dc | 60 | help/kerberos.html \ |
4744bd90 | 61 | help/license.html \ |
ef416fc2 | 62 | help/man-backend.html \ |
bd7854cb | 63 | help/man-cancel.html \ |
da516501 | 64 | help/man-classes.conf.html \ |
7131e285 | 65 | help/man-client.conf.html \ |
969af935 | 66 | help/man-cups.html \ |
ef416fc2 | 67 | help/man-cups-config.html \ |
da516501 | 68 | help/man-cups-files.conf.html \ |
ef416fc2 | 69 | help/man-cups-lpd.html \ |
f3c17241 | 70 | help/man-cups-snmp.html \ |
969af935 | 71 | help/man-cupsaccept.html \ |
4744bd90 | 72 | help/man-cupsaddsmb.html \ |
da516501 | 73 | help/man-cupsd.conf.html \ |
4744bd90 | 74 | help/man-cupsd.html \ |
7131e285 | 75 | help/man-cupsd-helper.html \ |
25d0c3fe | 76 | help/man-cupsd-logs.html \ |
4744bd90 | 77 | help/man-cupsenable.html \ |
80ca4592 | 78 | help/man-cupstestdsc.html \ |
ef416fc2 | 79 | help/man-cupstestppd.html \ |
80 | help/man-filter.html \ | |
aaf19ab0 MS |
81 | help/man-ipptool.html \ |
82 | help/man-ipptoolfile.html \ | |
4744bd90 | 83 | help/man-lp.html \ |
ef416fc2 | 84 | help/man-lpadmin.html \ |
85 | help/man-lpc.html \ | |
ef416fc2 | 86 | help/man-lpinfo.html \ |
87 | help/man-lpmove.html \ | |
88 | help/man-lpoptions.html \ | |
ef416fc2 | 89 | help/man-lpq.html \ |
90 | help/man-lpr.html \ | |
91 | help/man-lprm.html \ | |
92 | help/man-lpstat.html \ | |
bd7854cb | 93 | help/man-mime.convs.html \ |
94 | help/man-mime.types.html \ | |
178cb736 | 95 | help/man-notifier.html \ |
28b9d139 MS |
96 | help/man-ppdc.html \ |
97 | help/man-ppdhtml.html \ | |
98 | help/man-ppdi.html \ | |
99 | help/man-ppdmerge.html \ | |
100 | help/man-ppdpo.html \ | |
da516501 MS |
101 | help/man-printers.conf.html \ |
102 | help/man-subscriptions.conf.html \ | |
ef416fc2 | 103 | help/network.html \ |
4744bd90 | 104 | help/options.html \ |
ef416fc2 | 105 | help/overview.html \ |
8ca02f3c | 106 | help/policies.html \ |
28b9d139 MS |
107 | help/postscript-driver.html \ |
108 | help/ppd-compiler.html \ | |
e4572d57 | 109 | help/raster-driver.html \ |
bdd6c45b | 110 | help/ref-ppdcfile.html \ |
4744bd90 | 111 | help/security.html \ |
d2354e63 | 112 | help/sharing.html \ |
1f6f3dbc | 113 | help/spec-banner.html \ |
b423cd4c | 114 | help/spec-command.html \ |
4744bd90 | 115 | help/spec-design.html \ |
fa73b229 | 116 | help/spec-ipp.html \ |
f11a948a | 117 | help/spec-pdf.html \ |
f7deaa1a | 118 | help/spec-postscript.html \ |
ef416fc2 | 119 | help/spec-ppd.html \ |
4744bd90 | 120 | help/spec-raster.html \ |
121 | help/spec-stp.html \ | |
5f1456af | 122 | help/translation.html |
ef416fc2 | 123 | |
124 | ||
125 | # | |
126 | # Make all documents... | |
127 | # | |
128 | ||
129 | all: | |
130 | ||
131 | ||
c9fc04c6 MS |
132 | # |
133 | # Make library targets... | |
134 | # | |
135 | ||
136 | libs: | |
137 | ||
138 | ||
5f64df29 MS |
139 | # |
140 | # Make unit tests... | |
141 | # | |
142 | ||
143 | unittests: | |
144 | ||
145 | ||
ef416fc2 | 146 | # |
147 | # Remove all generated files... | |
148 | # | |
149 | ||
150 | clean: | |
151 | ||
152 | ||
757d2cad | 153 | # |
154 | # Dummy depend target... | |
155 | # | |
156 | ||
157 | depend: | |
158 | ||
159 | ||
ef416fc2 | 160 | # |
50fe7201 | 161 | # Install all targets... |
ef416fc2 | 162 | # |
163 | ||
50fe7201 MS |
164 | install: all install-data install-headers install-libs install-exec |
165 | ||
166 | ||
167 | # | |
168 | # Install data files... | |
169 | # | |
170 | ||
c168a833 | 171 | install-data: $(INSTALL_LANGUAGES) |
bd7854cb | 172 | $(INSTALL_DIR) -m 755 $(DOCDIR) |
ef416fc2 | 173 | for file in $(WEBPAGES); do \ |
174 | $(INSTALL_MAN) $$file $(DOCDIR); \ | |
175 | done | |
bd7854cb | 176 | $(INSTALL_DIR) -m 755 $(DOCDIR)/help |
ef416fc2 | 177 | for file in $(HELPFILES); do \ |
178 | $(INSTALL_MAN) $$file $(DOCDIR)/help; \ | |
179 | done | |
bd7854cb | 180 | $(INSTALL_DIR) -m 755 $(DOCDIR)/images |
f11a948a | 181 | for file in $(WEBIMAGES) $(HELPIMAGES); do \ |
ef416fc2 | 182 | $(INSTALL_MAN) $$file $(DOCDIR)/images; \ |
183 | done | |
ed486911 | 184 | |
185 | install-languages: | |
bd7854cb | 186 | for lang in $(LANGUAGES); do \ |
568fa3fa | 187 | if test -d $$lang; then \ |
c168a833 | 188 | $(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang; \ |
b226ab99 MS |
189 | $(INSTALL_DATA) $$lang/index.html $(DOCDIR)/$$lang; \ |
190 | $(INSTALL_DATA) $$lang/cups.css $(DOCDIR)/$$lang >/dev/null 2>&1 || true; \ | |
c0e1af83 | 191 | fi; \ |
757d2cad | 192 | done |
193 | ||
0837b7e8 MS |
194 | install-langbundle: |
195 | ||
757d2cad | 196 | |
50fe7201 MS |
197 | # |
198 | # Install programs... | |
199 | # | |
200 | ||
201 | install-exec: | |
202 | ||
203 | ||
204 | # | |
205 | # Install headers... | |
206 | # | |
207 | ||
208 | install-headers: | |
209 | ||
210 | ||
211 | # | |
212 | # Install libraries... | |
213 | # | |
214 | ||
215 | install-libs: | |
216 | ||
217 | ||
757d2cad | 218 | # |
c168a833 | 219 | # Uninstall all documentation files... |
757d2cad | 220 | # |
221 | ||
ed486911 | 222 | uninstall: $(UNINSTALL_LANGUAGES) |
757d2cad | 223 | for file in $(WEBPAGES); do \ |
224 | $(RM) $(DOCDIR)/$$file; \ | |
225 | done | |
226 | for file in $(HELPFILES); do \ | |
50fe7201 | 227 | $(RM) $(DOCDIR)/$$file; \ |
757d2cad | 228 | done |
2e4ff8af | 229 | for file in $(WEBIMAGES); do \ |
50fe7201 | 230 | $(RM) $(DOCDIR)/$$file; \ |
757d2cad | 231 | done |
ed486911 | 232 | -$(RMDIR) $(DOCDIR)/images |
233 | -$(RMDIR) $(DOCDIR)/help | |
234 | -$(RMDIR) $(DOCDIR) | |
235 | ||
236 | uninstall-languages: | |
757d2cad | 237 | -for lang in $(LANGUAGES); do \ |
238 | $(RM) $(DOCDIR)/$$lang/index.html; \ | |
c0e1af83 | 239 | $(RM) $(DOCDIR)/$$lang/cups.css; \ |
757d2cad | 240 | $(RMDIR) $(DOCDIR)/$$lang; \ |
bd7854cb | 241 | done |
ef416fc2 | 242 | |
0837b7e8 MS |
243 | install-langbundle: |
244 | ||
ef416fc2 | 245 | |
f11a948a MS |
246 | # |
247 | # Install the docset bits locally... | |
248 | # | |
249 | ||
250 | docset: | |
251 | cp $(HELPFILES) ../org.cups.docset/Contents/Resources/Documentation/help | |
252 | cp cups-printable.css ../org.cups.docset/Contents/Resources/Documentation | |
253 | cp $(HELPIMAGES) ../org.cups.docset/Contents/Resources/Documentation/images |