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