]> git.ipfire.org Git - thirdparty/cups.git/blob - doc/Makefile
Merge changes from CUPS 1.4svn-r7961.
[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-2008 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 favicon.png \
26 index.html \
27 robots.txt
28 WEBIMAGES = \
29 images/cups.png \
30 images/cups-block-diagram.gif \
31 images/cups-icon.png \
32 images/left.gif \
33 images/raster.png \
34 images/right.gif \
35 images/sel.gif \
36 images/smiley.jpg \
37 images/unsel.gif \
38 images/web-add-this-printer.gif \
39 images/web-password.gif \
40 images/web-printer-driver.gif \
41 images/web-printer-status.gif \
42 images/web-set-printer-options.gif \
43 images/web-test-page.gif
44 HELPFILES = \
45 help/accounting.html \
46 help/api-array.html \
47 help/api-cups.html \
48 help/api-filedir.html \
49 help/api-filter.html \
50 help/api-httpipp.html \
51 help/api-overview.html \
52 help/api-ppd.html \
53 help/api-raster.html \
54 help/cgi.html \
55 help/glossary.html \
56 help/kerberos.html \
57 help/license.html \
58 help/man-cupsaccept.html \
59 help/man-backend.html \
60 help/man-cancel.html \
61 help/man-classes.conf.html \
62 help/man-client.conf.html \
63 help/man-cups-config.html \
64 help/man-cups-lpd.html \
65 help/man-cups-polld.html \
66 help/man-cupsaddsmb.html \
67 help/man-cupsd.conf.html \
68 help/man-cupsd.html \
69 help/man-cupsenable.html \
70 help/man-cupstestdsc.html \
71 help/man-cupstestppd.html \
72 help/man-drv.html \
73 help/man-filter.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-lppasswd.html \
81 help/man-lpq.html \
82 help/man-lpr.html \
83 help/man-lprm.html \
84 help/man-lpstat.html \
85 help/man-mime.convs.html \
86 help/man-mime.types.html \
87 help/man-printers.conf.html \
88 help/network.html \
89 help/options.html \
90 help/overview.html \
91 help/policies.html \
92 help/ref-access_log.html \
93 help/ref-classes-conf.html \
94 help/ref-client-conf.html \
95 help/ref-cupsd-conf.html \
96 help/ref-error_log.html \
97 help/ref-mailto-conf.html \
98 help/ref-page_log.html \
99 help/ref-ppdcfile.html \
100 help/ref-printers-conf.html \
101 help/ref-snmp-conf.html \
102 help/ref-subscriptions-conf.html \
103 help/security.html \
104 help/spec-browsing.html \
105 help/spec-cmp.html \
106 help/spec-command.html \
107 help/spec-design.html \
108 help/spec-ipp.html \
109 help/spec-postscript.html \
110 help/spec-ppd.html \
111 help/spec-raster.html \
112 help/spec-stp.html \
113 help/standard.html \
114 help/translation.html \
115 help/whatsnew.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:
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); 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/images; \
182 $(INSTALL_MAN) $$lang/index.html $(DOCDIR)/$$lang; \
183 $(INSTALL_MAN) $$lang/cups.css $(DOCDIR)/$$lang 2>/dev/null || true; \
184 $(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang/images; \
185 for file in $(WEBIMAGES); do \
186 $(INSTALL_MAN) $$lang/$$file $(DOCDIR)/$$lang/images 2>/dev/null || true; \
187 done; \
188 fi; \
189 done
190
191
192 #
193 # Install programs...
194 #
195
196 install-exec:
197
198
199 #
200 # Install headers...
201 #
202
203 install-headers:
204
205
206 #
207 # Install libraries...
208 #
209
210 install-libs:
211
212
213 #
214 # Unnstall all documentation files...
215 #
216
217 uninstall: $(UNINSTALL_LANGUAGES)
218 for file in $(WEBPAGES); do \
219 $(RM) $(DOCDIR)/$$file; \
220 done
221 for file in $(HELPFILES); do \
222 $(RM) $(DOCDIR)/$$file; \
223 done
224 for file in $(WEBIMAGES); do \
225 $(RM) $(DOCDIR)/$$file; \
226 done
227 -$(RMDIR) $(DOCDIR)/images
228 -$(RMDIR) $(DOCDIR)/help
229 -$(RMDIR) $(DOCDIR)
230
231 uninstall-languages:
232 -for lang in $(LANGUAGES); do \
233 $(RM) $(DOCDIR)/$$lang/index.html; \
234 $(RM) $(DOCDIR)/$$lang/cups.css; \
235 for file in $(WEBIMAGES); do \
236 $(RM) $(DOCDIR)/$$lang/$$file; \
237 done; \
238 $(RMDIR) $(DOCDIR)/$$lang/images; \
239 $(RMDIR) $(DOCDIR)/$$lang; \
240 done
241
242
243 #
244 # End of Makefile.
245 #