]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Documentation makefile for CUPS. | |
3 | # | |
4 | # Copyright 2007-2018 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 | ||
10 | include ../Makedefs | |
11 | ||
12 | # | |
13 | # Document files... | |
14 | # | |
15 | ||
16 | WEBPAGES = \ | |
17 | apple-touch-icon.png \ | |
18 | cups.css \ | |
19 | cups-printable.css \ | |
20 | index.html \ | |
21 | robots.txt | |
22 | WEBIMAGES = \ | |
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 | |
32 | HELPIMAGES = \ | |
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 | |
41 | HELPFILES = \ | |
42 | help/accounting.html \ | |
43 | help/admin.html \ | |
44 | help/api-admin.html \ | |
45 | help/api-filter.html \ | |
46 | help/api-ppd.html \ | |
47 | help/api-raster.html \ | |
48 | help/cgi.html \ | |
49 | help/cupspm.html \ | |
50 | help/encryption.html \ | |
51 | help/firewalls.html \ | |
52 | help/glossary.html \ | |
53 | help/kerberos.html \ | |
54 | help/license.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.html \ | |
60 | help/man-cups-config.html \ | |
61 | help/man-cups-files.conf.html \ | |
62 | help/man-cups-lpd.html \ | |
63 | help/man-cups-snmp.html \ | |
64 | help/man-cupsaccept.html \ | |
65 | help/man-cupsaddsmb.html \ | |
66 | help/man-cupsd.conf.html \ | |
67 | help/man-cupsd.html \ | |
68 | help/man-cupsd-helper.html \ | |
69 | help/man-cupsd-logs.html \ | |
70 | help/man-cupsenable.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-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-notifier.html \ | |
88 | help/man-ppdc.html \ | |
89 | help/man-ppdhtml.html \ | |
90 | help/man-ppdi.html \ | |
91 | help/man-ppdmerge.html \ | |
92 | help/man-ppdpo.html \ | |
93 | help/man-printers.conf.html \ | |
94 | help/man-subscriptions.conf.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-ppdcfile.html \ | |
103 | help/security.html \ | |
104 | help/sharing.html \ | |
105 | help/spec-banner.html \ | |
106 | help/spec-command.html \ | |
107 | help/spec-design.html \ | |
108 | help/spec-ipp.html \ | |
109 | help/spec-ppd.html \ | |
110 | help/spec-raster.html \ | |
111 | help/spec-stp.html \ | |
112 | help/translation.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: $(INSTALL_LANGUAGES) | |
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) $(HELPIMAGES); 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; \ | |
179 | $(INSTALL_DATA) $$lang/index.html $(DOCDIR)/$$lang; \ | |
180 | $(INSTALL_DATA) $$lang/cups.css $(DOCDIR)/$$lang >/dev/null 2>&1 || true; \ | |
181 | fi; \ | |
182 | done | |
183 | ||
184 | install-langbundle: | |
185 | ||
186 | ||
187 | # | |
188 | # Install programs... | |
189 | # | |
190 | ||
191 | install-exec: | |
192 | ||
193 | ||
194 | # | |
195 | # Install headers... | |
196 | # | |
197 | ||
198 | install-headers: | |
199 | ||
200 | ||
201 | # | |
202 | # Install libraries... | |
203 | # | |
204 | ||
205 | install-libs: | |
206 | ||
207 | ||
208 | # | |
209 | # Uninstall all documentation files... | |
210 | # | |
211 | ||
212 | uninstall: $(UNINSTALL_LANGUAGES) | |
213 | for file in $(WEBPAGES); do \ | |
214 | $(RM) $(DOCDIR)/$$file; \ | |
215 | done | |
216 | for file in $(HELPFILES); do \ | |
217 | $(RM) $(DOCDIR)/$$file; \ | |
218 | done | |
219 | for file in $(WEBIMAGES); do \ | |
220 | $(RM) $(DOCDIR)/$$file; \ | |
221 | done | |
222 | -$(RMDIR) $(DOCDIR)/images | |
223 | -$(RMDIR) $(DOCDIR)/help | |
224 | -$(RMDIR) $(DOCDIR) | |
225 | ||
226 | uninstall-languages: | |
227 | -for lang in $(LANGUAGES); do \ | |
228 | $(RM) $(DOCDIR)/$$lang/index.html; \ | |
229 | $(RM) $(DOCDIR)/$$lang/cups.css; \ | |
230 | $(RMDIR) $(DOCDIR)/$$lang; \ | |
231 | done | |
232 | ||
233 | install-langbundle: | |
234 | ||
235 | ||
236 | # | |
237 | # Install the docset bits locally... | |
238 | # | |
239 | ||
240 | docset: | |
241 | cp $(HELPFILES) ../org.cups.docset/Contents/Resources/Documentation/help | |
242 | cp cups-printable.css ../org.cups.docset/Contents/Resources/Documentation | |
243 | cp $(HELPIMAGES) ../org.cups.docset/Contents/Resources/Documentation/images |