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