]> git.ipfire.org Git - thirdparty/cups.git/blob - doc/Makefile
Merge changes from CUPS 1.5svn-r9313.
[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/generic.png \
32 images/left.gif \
33 images/right.gif \
34 images/sel.gif \
35 images/unsel.gif \
36 images/wait.gif
37 HELPIMAGES = \
38 images/cups-block-diagram.png \
39 images/cups-command-chain.png \
40 images/cups-postscript-chain.png \
41 images/cups-raster-chain.png \
42 images/raster.png \
43 images/smiley.jpg
44 HELPFILES = \
45 help/accounting.html \
46 help/api-array.html \
47 help/api-cgi.html \
48 help/api-cups.html \
49 help/api-driver.html \
50 help/api-filedir.html \
51 help/api-filter.html \
52 help/api-httpipp.html \
53 help/api-mime.html \
54 help/api-overview.html \
55 help/api-ppd.html \
56 help/api-ppdc.html \
57 help/api-raster.html \
58 help/cgi.html \
59 help/glossary.html \
60 help/kerberos.html \
61 help/license.html \
62 help/man-cupsaccept.html \
63 help/man-backend.html \
64 help/man-cancel.html \
65 help/man-cups-config.html \
66 help/man-cups-lpd.html \
67 help/man-cups-polld.html \
68 help/man-cupsaddsmb.html \
69 help/man-cupsd.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-lppasswd.html \
83 help/man-lpq.html \
84 help/man-lpr.html \
85 help/man-lprm.html \
86 help/man-lpstat.html \
87 help/man-mime.convs.html \
88 help/man-mime.types.html \
89 help/man-notifier.html \
90 help/man-ppdc.html \
91 help/man-ppdhtml.html \
92 help/man-ppdi.html \
93 help/man-ppdmerge.html \
94 help/man-ppdpo.html \
95 help/network.html \
96 help/options.html \
97 help/overview.html \
98 help/policies.html \
99 help/postscript-driver.html \
100 help/ppd-compiler.html \
101 help/raster-driver.html \
102 help/ref-access_log.html \
103 help/ref-classes-conf.html \
104 help/ref-client-conf.html \
105 help/ref-cupsd-conf.html \
106 help/ref-error_log.html \
107 help/ref-mailto-conf.html \
108 help/ref-page_log.html \
109 help/ref-ppdcfile.html \
110 help/ref-printers-conf.html \
111 help/ref-snmp-conf.html \
112 help/ref-subscriptions-conf.html \
113 help/security.html \
114 help/sharing.html \
115 help/spec-banner.html \
116 help/spec-browsing.html \
117 help/spec-cmp.html \
118 help/spec-command.html \
119 help/spec-design.html \
120 help/spec-ipp.html \
121 help/spec-pdf.html \
122 help/spec-postscript.html \
123 help/spec-ppd.html \
124 help/spec-raster.html \
125 help/spec-stp.html \
126 help/standard.html \
127 help/translation.html \
128 help/whatsnew.html
129
130
131 #
132 # Make all documents...
133 #
134
135 all:
136
137
138 #
139 # Make library targets...
140 #
141
142 libs:
143
144
145 #
146 # Make unit tests...
147 #
148
149 unittests:
150
151
152 #
153 # Remove all generated files...
154 #
155
156 clean:
157
158
159 #
160 # Dummy depend target...
161 #
162
163 depend:
164
165
166 #
167 # Install all targets...
168 #
169
170 install: all install-data install-headers install-libs install-exec
171
172
173 #
174 # Install data files...
175 #
176
177 install-data: $(INSTALL_LANGUAGES)
178 $(INSTALL_DIR) -m 755 $(DOCDIR)
179 for file in $(WEBPAGES); do \
180 $(INSTALL_MAN) $$file $(DOCDIR); \
181 done
182 $(INSTALL_DIR) -m 755 $(DOCDIR)/help
183 for file in $(HELPFILES); do \
184 $(INSTALL_MAN) $$file $(DOCDIR)/help; \
185 done
186 $(INSTALL_DIR) -m 755 $(DOCDIR)/images
187 for file in $(WEBIMAGES) $(HELPIMAGES); do \
188 $(INSTALL_MAN) $$file $(DOCDIR)/images; \
189 done
190
191 install-languages:
192 for lang in $(LANGUAGES); do \
193 if test -d $$lang; then \
194 $(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang; \
195 $(INSTALL_DATA) $$lang/index.html $(DOCDIR)/$$lang; \
196 $(INSTALL_DATA) $$lang/cups.css $(DOCDIR)/$$lang >/dev/null 2>&1 || true; \
197 fi; \
198 done
199
200
201 #
202 # Install programs...
203 #
204
205 install-exec:
206
207
208 #
209 # Install headers...
210 #
211
212 install-headers:
213
214
215 #
216 # Install libraries...
217 #
218
219 install-libs:
220
221
222 #
223 # Uninstall all documentation files...
224 #
225
226 uninstall: $(UNINSTALL_LANGUAGES)
227 for file in $(WEBPAGES); do \
228 $(RM) $(DOCDIR)/$$file; \
229 done
230 for file in $(HELPFILES); do \
231 $(RM) $(DOCDIR)/$$file; \
232 done
233 for file in $(WEBIMAGES); do \
234 $(RM) $(DOCDIR)/$$file; \
235 done
236 -$(RMDIR) $(DOCDIR)/images
237 -$(RMDIR) $(DOCDIR)/help
238 -$(RMDIR) $(DOCDIR)
239
240 uninstall-languages:
241 -for lang in $(LANGUAGES); do \
242 $(RM) $(DOCDIR)/$$lang/index.html; \
243 $(RM) $(DOCDIR)/$$lang/cups.css; \
244 $(RMDIR) $(DOCDIR)/$$lang; \
245 done
246
247
248 #
249 # Install the docset bits locally...
250 #
251
252 docset:
253 cp $(HELPFILES) ../org.cups.docset/Contents/Resources/Documentation/help
254 cp cups-printable.css ../org.cups.docset/Contents/Resources/Documentation
255 cp $(HELPIMAGES) ../org.cups.docset/Contents/Resources/Documentation/images
256
257
258 #
259 # End of Makefile.
260 #