]> git.ipfire.org Git - thirdparty/cups.git/blob - doc/Makefile
Drop API help for CGI, MIME, and PPD compiler libraries.
[thirdparty/cups.git] / doc / Makefile
1 #
2 # Documentation makefile for CUPS.
3 #
4 # Copyright 2007-2016 by Apple Inc.
5 # Copyright 1997-2007 by Easy Software Products.
6 #
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/".
12 #
13
14 include ../Makedefs
15
16 #
17 # Document files...
18 #
19
20 WEBPAGES = \
21 apple-touch-icon.png \
22 cups.css \
23 cups-printable.css \
24 index.html \
25 robots.txt
26 WEBIMAGES = \
27 images/color-wheel.png \
28 images/cups.png \
29 images/cups-icon.png \
30 images/generic.png \
31 images/left.gif \
32 images/right.gif \
33 images/sel.gif \
34 images/unsel.gif \
35 images/wait.gif
36 HELPIMAGES = \
37 images/cups-block-diagram.png \
38 images/cups-command-chain.png \
39 images/cups-postscript-chain.png \
40 images/cups-raster-chain.png \
41 images/raster.png \
42 images/raster-organization.png \
43 images/sample-image.png \
44 images/smiley.jpg
45 HELPFILES = \
46 help/accounting.html \
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 \
52 help/api-overview.html \
53 help/api-ppd.html \
54 help/api-raster.html \
55 help/cgi.html \
56 help/glossary.html \
57 help/kerberos.html \
58 help/license.html \
59 help/man-backend.html \
60 help/man-cancel.html \
61 help/man-classes.conf.html \
62 help/man-client.conf.html \
63 help/man-cups.html \
64 help/man-cups-config.html \
65 help/man-cups-files.conf.html \
66 help/man-cups-lpd.html \
67 help/man-cups-snmp.html \
68 help/man-cupsaccept.html \
69 help/man-cupsaddsmb.html \
70 help/man-cupsd.conf.html \
71 help/man-cupsd.html \
72 help/man-cupsd-helper.html \
73 help/man-cupsd-logs.html \
74 help/man-cupsenable.html \
75 help/man-cupstestdsc.html \
76 help/man-cupstestppd.html \
77 help/man-filter.html \
78 help/man-ipptool.html \
79 help/man-ipptoolfile.html \
80 help/man-lp.html \
81 help/man-lpadmin.html \
82 help/man-lpc.html \
83 help/man-lpinfo.html \
84 help/man-lpmove.html \
85 help/man-lpoptions.html \
86 help/man-lpq.html \
87 help/man-lpr.html \
88 help/man-lprm.html \
89 help/man-lpstat.html \
90 help/man-mime.convs.html \
91 help/man-mime.types.html \
92 help/man-notifier.html \
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 \
98 help/man-printers.conf.html \
99 help/man-subscriptions.conf.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-ppdcfile.html \
108 help/security.html \
109 help/sharing.html \
110 help/spec-banner.html \
111 help/spec-command.html \
112 help/spec-design.html \
113 help/spec-ipp.html \
114 help/spec-pdf.html \
115 help/spec-postscript.html \
116 help/spec-ppd.html \
117 help/spec-raster.html \
118 help/spec-stp.html \
119 help/translation.html
120
121
122 #
123 # Make all documents...
124 #
125
126 all:
127
128
129 #
130 # Make library targets...
131 #
132
133 libs:
134
135
136 #
137 # Make unit tests...
138 #
139
140 unittests:
141
142
143 #
144 # Remove all generated files...
145 #
146
147 clean:
148
149
150 #
151 # Dummy depend target...
152 #
153
154 depend:
155
156
157 #
158 # Install all targets...
159 #
160
161 install: all install-data install-headers install-libs install-exec
162
163
164 #
165 # Install data files...
166 #
167
168 install-data: $(INSTALL_LANGUAGES)
169 $(INSTALL_DIR) -m 755 $(DOCDIR)
170 for file in $(WEBPAGES); do \
171 $(INSTALL_MAN) $$file $(DOCDIR); \
172 done
173 $(INSTALL_DIR) -m 755 $(DOCDIR)/help
174 for file in $(HELPFILES); do \
175 $(INSTALL_MAN) $$file $(DOCDIR)/help; \
176 done
177 $(INSTALL_DIR) -m 755 $(DOCDIR)/images
178 for file in $(WEBIMAGES) $(HELPIMAGES); do \
179 $(INSTALL_MAN) $$file $(DOCDIR)/images; \
180 done
181
182 install-languages:
183 for lang in $(LANGUAGES); do \
184 if test -d $$lang; then \
185 $(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang; \
186 $(INSTALL_DATA) $$lang/index.html $(DOCDIR)/$$lang; \
187 $(INSTALL_DATA) $$lang/cups.css $(DOCDIR)/$$lang >/dev/null 2>&1 || true; \
188 fi; \
189 done
190
191 install-langbundle:
192
193
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
215 #
216 # Uninstall all documentation files...
217 #
218
219 uninstall: $(UNINSTALL_LANGUAGES)
220 for file in $(WEBPAGES); do \
221 $(RM) $(DOCDIR)/$$file; \
222 done
223 for file in $(HELPFILES); do \
224 $(RM) $(DOCDIR)/$$file; \
225 done
226 for file in $(WEBIMAGES); do \
227 $(RM) $(DOCDIR)/$$file; \
228 done
229 -$(RMDIR) $(DOCDIR)/images
230 -$(RMDIR) $(DOCDIR)/help
231 -$(RMDIR) $(DOCDIR)
232
233 uninstall-languages:
234 -for lang in $(LANGUAGES); do \
235 $(RM) $(DOCDIR)/$$lang/index.html; \
236 $(RM) $(DOCDIR)/$$lang/cups.css; \
237 $(RMDIR) $(DOCDIR)/$$lang; \
238 done
239
240 install-langbundle:
241
242
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