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