]> git.ipfire.org Git - thirdparty/cups.git/blob - doc/Makefile
Merge changes from CUPS 1.5svn-r9198.
[thirdparty/cups.git] / doc / Makefile
1 #
2 # "$Id: Makefile 7941 2008-09-16 00:46:13Z mike $"
3 #
4 # Documentation makefile for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 2007-2009 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 cups.css \
24 cups-printable.css \
25 index.html \
26 robots.txt
27 WEBIMAGES = \
28 images/color-wheel.png \
29 images/cups.png \
30 images/cups-icon.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/smiley.jpg
43 HELPFILES = \
44 help/accounting.html \
45 help/api-array.html \
46 help/api-cgi.html \
47 help/api-cups.html \
48 help/api-driver.html \
49 help/api-filedir.html \
50 help/api-filter.html \
51 help/api-httpipp.html \
52 help/api-mime.html \
53 help/api-overview.html \
54 help/api-ppd.html \
55 help/api-ppdc.html \
56 help/api-raster.html \
57 help/cgi.html \
58 help/glossary.html \
59 help/kerberos.html \
60 help/license.html \
61 help/man-cupsaccept.html \
62 help/man-backend.html \
63 help/man-cancel.html \
64 help/man-cups-config.html \
65 help/man-cups-lpd.html \
66 help/man-cups-polld.html \
67 help/man-cupsaddsmb.html \
68 help/man-cupsd.html \
69 help/man-cupsenable.html \
70 help/man-cupstestdsc.html \
71 help/man-cupstestppd.html \
72 help/man-filter.html \
73 help/man-ipptool.html \
74 help/man-ipptoolfile.html \
75 help/man-lp.html \
76 help/man-lpadmin.html \
77 help/man-lpc.html \
78 help/man-lpinfo.html \
79 help/man-lpmove.html \
80 help/man-lpoptions.html \
81 help/man-lppasswd.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/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-access_log.html \
102 help/ref-classes-conf.html \
103 help/ref-client-conf.html \
104 help/ref-cupsd-conf.html \
105 help/ref-error_log.html \
106 help/ref-mailto-conf.html \
107 help/ref-page_log.html \
108 help/ref-ppdcfile.html \
109 help/ref-printers-conf.html \
110 help/ref-snmp-conf.html \
111 help/ref-subscriptions-conf.html \
112 help/security.html \
113 help/sharing.html \
114 help/spec-banner.html \
115 help/spec-browsing.html \
116 help/spec-cmp.html \
117 help/spec-command.html \
118 help/spec-design.html \
119 help/spec-ipp.html \
120 help/spec-pdf.html \
121 help/spec-postscript.html \
122 help/spec-ppd.html \
123 help/spec-raster.html \
124 help/spec-stp.html \
125 help/standard.html \
126 help/translation.html \
127 help/whatsnew.html
128
129
130 #
131 # Make all documents...
132 #
133
134 all:
135
136
137 #
138 # Make library targets...
139 #
140
141 libs:
142
143
144 #
145 # Make unit tests...
146 #
147
148 unittests:
149
150
151 #
152 # Remove all generated files...
153 #
154
155 clean:
156
157
158 #
159 # Dummy depend target...
160 #
161
162 depend:
163
164
165 #
166 # Install all targets...
167 #
168
169 install: all install-data install-headers install-libs install-exec
170
171
172 #
173 # Install data files...
174 #
175
176 install-data: $(INSTALL_LANGUAGES)
177 $(INSTALL_DIR) -m 755 $(DOCDIR)
178 for file in $(WEBPAGES); do \
179 $(INSTALL_MAN) $$file $(DOCDIR); \
180 done
181 $(INSTALL_DIR) -m 755 $(DOCDIR)/help
182 for file in $(HELPFILES); do \
183 $(INSTALL_MAN) $$file $(DOCDIR)/help; \
184 done
185 $(INSTALL_DIR) -m 755 $(DOCDIR)/images
186 for file in $(WEBIMAGES) $(HELPIMAGES); do \
187 $(INSTALL_MAN) $$file $(DOCDIR)/images; \
188 done
189
190 install-languages:
191 for lang in $(LANGUAGES); do \
192 if test -d $$lang; then \
193 $(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang; \
194 $(INSTALL_DATA) $$lang/index.html $(DOCDIR)/$$lang; \
195 $(INSTALL_DATA) $$lang/cups.css $(DOCDIR)/$$lang >/dev/null 2>&1 || true; \
196 fi; \
197 done
198
199
200 #
201 # Install programs...
202 #
203
204 install-exec:
205
206
207 #
208 # Install headers...
209 #
210
211 install-headers:
212
213
214 #
215 # Install libraries...
216 #
217
218 install-libs:
219
220
221 #
222 # Uninstall all documentation files...
223 #
224
225 uninstall: $(UNINSTALL_LANGUAGES)
226 for file in $(WEBPAGES); do \
227 $(RM) $(DOCDIR)/$$file; \
228 done
229 for file in $(HELPFILES); do \
230 $(RM) $(DOCDIR)/$$file; \
231 done
232 for file in $(WEBIMAGES); do \
233 $(RM) $(DOCDIR)/$$file; \
234 done
235 -$(RMDIR) $(DOCDIR)/images
236 -$(RMDIR) $(DOCDIR)/help
237 -$(RMDIR) $(DOCDIR)
238
239 uninstall-languages:
240 -for lang in $(LANGUAGES); do \
241 $(RM) $(DOCDIR)/$$lang/index.html; \
242 $(RM) $(DOCDIR)/$$lang/cups.css; \
243 $(RMDIR) $(DOCDIR)/$$lang; \
244 done
245
246
247 #
248 # Install the docset bits locally...
249 #
250
251 docset:
252 cp $(HELPFILES) ../org.cups.docset/Contents/Resources/Documentation/help
253 cp cups-printable.css ../org.cups.docset/Contents/Resources/Documentation
254 cp $(HELPIMAGES) ../org.cups.docset/Contents/Resources/Documentation/images
255
256
257 #
258 # End of Makefile.
259 #