]> git.ipfire.org Git - thirdparty/cups.git/blob - doc/Makefile
de4a9f6b6079b2cdacfa0909c94db7e19643b956
[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-admin.html \
48 help/api-array.html \
49 help/api-cups.html \
50 help/api-filedir.html \
51 help/api-filter.html \
52 help/api-httpipp.html \
53 help/api-overview.html \
54 help/api-ppd.html \
55 help/api-raster.html \
56 help/cgi.html \
57 help/encryption.html \
58 help/glossary.html \
59 help/kerberos.html \
60 help/license.html \
61 help/man-backend.html \
62 help/man-cancel.html \
63 help/man-classes.conf.html \
64 help/man-client.conf.html \
65 help/man-cups.html \
66 help/man-cups-config.html \
67 help/man-cups-files.conf.html \
68 help/man-cups-lpd.html \
69 help/man-cups-snmp.html \
70 help/man-cupsaccept.html \
71 help/man-cupsaddsmb.html \
72 help/man-cupsd.conf.html \
73 help/man-cupsd.html \
74 help/man-cupsd-helper.html \
75 help/man-cupsd-logs.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/man-printers.conf.html \
101 help/man-subscriptions.conf.html \
102 help/network.html \
103 help/options.html \
104 help/overview.html \
105 help/policies.html \
106 help/postscript-driver.html \
107 help/ppd-compiler.html \
108 help/raster-driver.html \
109 help/ref-ppdcfile.html \
110 help/security.html \
111 help/sharing.html \
112 help/spec-banner.html \
113 help/spec-command.html \
114 help/spec-design.html \
115 help/spec-ipp.html \
116 help/spec-pdf.html \
117 help/spec-postscript.html \
118 help/spec-ppd.html \
119 help/spec-raster.html \
120 help/spec-stp.html \
121 help/translation.html
122
123
124 #
125 # Make all documents...
126 #
127
128 all:
129
130
131 #
132 # Make library targets...
133 #
134
135 libs:
136
137
138 #
139 # Make unit tests...
140 #
141
142 unittests:
143
144
145 #
146 # Remove all generated files...
147 #
148
149 clean:
150
151
152 #
153 # Dummy depend target...
154 #
155
156 depend:
157
158
159 #
160 # Install all targets...
161 #
162
163 install: all install-data install-headers install-libs install-exec
164
165
166 #
167 # Install data files...
168 #
169
170 install-data: $(INSTALL_LANGUAGES)
171 $(INSTALL_DIR) -m 755 $(DOCDIR)
172 for file in $(WEBPAGES); do \
173 $(INSTALL_MAN) $$file $(DOCDIR); \
174 done
175 $(INSTALL_DIR) -m 755 $(DOCDIR)/help
176 for file in $(HELPFILES); do \
177 $(INSTALL_MAN) $$file $(DOCDIR)/help; \
178 done
179 $(INSTALL_DIR) -m 755 $(DOCDIR)/images
180 for file in $(WEBIMAGES) $(HELPIMAGES); do \
181 $(INSTALL_MAN) $$file $(DOCDIR)/images; \
182 done
183
184 install-languages:
185 for lang in $(LANGUAGES); do \
186 if test -d $$lang; then \
187 $(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang; \
188 $(INSTALL_DATA) $$lang/index.html $(DOCDIR)/$$lang; \
189 $(INSTALL_DATA) $$lang/cups.css $(DOCDIR)/$$lang >/dev/null 2>&1 || true; \
190 fi; \
191 done
192
193 install-langbundle:
194
195
196 #
197 # Install programs...
198 #
199
200 install-exec:
201
202
203 #
204 # Install headers...
205 #
206
207 install-headers:
208
209
210 #
211 # Install libraries...
212 #
213
214 install-libs:
215
216
217 #
218 # Uninstall all documentation files...
219 #
220
221 uninstall: $(UNINSTALL_LANGUAGES)
222 for file in $(WEBPAGES); do \
223 $(RM) $(DOCDIR)/$$file; \
224 done
225 for file in $(HELPFILES); do \
226 $(RM) $(DOCDIR)/$$file; \
227 done
228 for file in $(WEBIMAGES); do \
229 $(RM) $(DOCDIR)/$$file; \
230 done
231 -$(RMDIR) $(DOCDIR)/images
232 -$(RMDIR) $(DOCDIR)/help
233 -$(RMDIR) $(DOCDIR)
234
235 uninstall-languages:
236 -for lang in $(LANGUAGES); do \
237 $(RM) $(DOCDIR)/$$lang/index.html; \
238 $(RM) $(DOCDIR)/$$lang/cups.css; \
239 $(RMDIR) $(DOCDIR)/$$lang; \
240 done
241
242 install-langbundle:
243
244
245 #
246 # Install the docset bits locally...
247 #
248
249 docset:
250 cp $(HELPFILES) ../org.cups.docset/Contents/Resources/Documentation/help
251 cp cups-printable.css ../org.cups.docset/Contents/Resources/Documentation
252 cp $(HELPIMAGES) ../org.cups.docset/Contents/Resources/Documentation/images