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