]> git.ipfire.org Git - thirdparty/cups.git/blame - doc/Makefile
Fix source file header text duplication text duplication.
[thirdparty/cups.git] / doc / Makefile
CommitLineData
ef416fc2 1#
969af935 2# Documentation makefile for CUPS.
ef416fc2 3#
d825017a 4# Copyright 2007-2016 by Apple Inc.
969af935 5# Copyright 1997-2007 by Easy Software Products.
ef416fc2 6#
969af935
MS
7# These coded instructions, statements, and computer programs are the
8# property of Apple Inc. and are protected by Federal copyright
9# law. Distribution and use rights are outlined in the file "LICENSE.txt"
10# which should have been included with this file. If this file is
57b7b66b 11# missing or damaged, see the license at "http://www.cups.org/".
ef416fc2 12#
13
14include ../Makedefs
15
16#
17# Document files...
18#
19
4744bd90 20WEBPAGES = \
dfc45c1b 21 apple-touch-icon.png \
4744bd90 22 cups.css \
23 cups-printable.css \
4744bd90 24 index.html \
25 robots.txt
bd7854cb 26WEBIMAGES = \
4b3f67ff 27 images/color-wheel.png \
2e4ff8af 28 images/cups.png \
2e4ff8af 29 images/cups-icon.png \
7cf5915e 30 images/generic.png \
2e4ff8af 31 images/left.gif \
2e4ff8af
MS
32 images/right.gif \
33 images/sel.gif \
2e4ff8af 34 images/unsel.gif \
58dc1933 35 images/wait.gif
f11a948a 36HELPIMAGES = \
393ac6ab 37 images/cups-block-diagram.png \
f11a948a
MS
38 images/cups-command-chain.png \
39 images/cups-postscript-chain.png \
40 images/cups-raster-chain.png \
41 images/raster.png \
0268488e
MS
42 images/raster-organization.png \
43 images/sample-image.png \
f11a948a 44 images/smiley.jpg
ef416fc2 45HELPFILES = \
09a101d6 46 help/accounting.html \
dffa3c74 47 help/api-admin.html \
ef416fc2 48 help/api-array.html \
49 help/api-cups.html \
50 help/api-filedir.html \
51 help/api-filter.html \
52 help/api-httpipp.html \
5a738aea 53 help/api-overview.html \
ef416fc2 54 help/api-ppd.html \
b423cd4c 55 help/api-raster.html \
4744bd90 56 help/cgi.html \
0ebe8e7c 57 help/encryption.html \
4744bd90 58 help/glossary.html \
355e94dc 59 help/kerberos.html \
4744bd90 60 help/license.html \
ef416fc2 61 help/man-backend.html \
bd7854cb 62 help/man-cancel.html \
da516501 63 help/man-classes.conf.html \
7131e285 64 help/man-client.conf.html \
969af935 65 help/man-cups.html \
ef416fc2 66 help/man-cups-config.html \
da516501 67 help/man-cups-files.conf.html \
ef416fc2 68 help/man-cups-lpd.html \
f3c17241 69 help/man-cups-snmp.html \
969af935 70 help/man-cupsaccept.html \
4744bd90 71 help/man-cupsaddsmb.html \
da516501 72 help/man-cupsd.conf.html \
4744bd90 73 help/man-cupsd.html \
7131e285 74 help/man-cupsd-helper.html \
25d0c3fe 75 help/man-cupsd-logs.html \
4744bd90 76 help/man-cupsenable.html \
80ca4592 77 help/man-cupstestdsc.html \
ef416fc2 78 help/man-cupstestppd.html \
79 help/man-filter.html \
aaf19ab0
MS
80 help/man-ipptool.html \
81 help/man-ipptoolfile.html \
4744bd90 82 help/man-lp.html \
ef416fc2 83 help/man-lpadmin.html \
84 help/man-lpc.html \
ef416fc2 85 help/man-lpinfo.html \
86 help/man-lpmove.html \
87 help/man-lpoptions.html \
ef416fc2 88 help/man-lpq.html \
89 help/man-lpr.html \
90 help/man-lprm.html \
91 help/man-lpstat.html \
bd7854cb 92 help/man-mime.convs.html \
93 help/man-mime.types.html \
178cb736 94 help/man-notifier.html \
28b9d139
MS
95 help/man-ppdc.html \
96 help/man-ppdhtml.html \
97 help/man-ppdi.html \
98 help/man-ppdmerge.html \
99 help/man-ppdpo.html \
da516501
MS
100 help/man-printers.conf.html \
101 help/man-subscriptions.conf.html \
ef416fc2 102 help/network.html \
4744bd90 103 help/options.html \
ef416fc2 104 help/overview.html \
8ca02f3c 105 help/policies.html \
28b9d139
MS
106 help/postscript-driver.html \
107 help/ppd-compiler.html \
e4572d57 108 help/raster-driver.html \
bdd6c45b 109 help/ref-ppdcfile.html \
4744bd90 110 help/security.html \
d2354e63 111 help/sharing.html \
1f6f3dbc 112 help/spec-banner.html \
b423cd4c 113 help/spec-command.html \
4744bd90 114 help/spec-design.html \
fa73b229 115 help/spec-ipp.html \
f11a948a 116 help/spec-pdf.html \
f7deaa1a 117 help/spec-postscript.html \
ef416fc2 118 help/spec-ppd.html \
4744bd90 119 help/spec-raster.html \
120 help/spec-stp.html \
5f1456af 121 help/translation.html
ef416fc2 122
123
124#
125# Make all documents...
126#
127
128all:
129
130
c9fc04c6
MS
131#
132# Make library targets...
133#
134
135libs:
136
137
5f64df29
MS
138#
139# Make unit tests...
140#
141
142unittests:
143
144
ef416fc2 145#
146# Remove all generated files...
147#
148
149clean:
150
151
757d2cad 152#
153# Dummy depend target...
154#
155
156depend:
157
158
ef416fc2 159#
50fe7201 160# Install all targets...
ef416fc2 161#
162
50fe7201
MS
163install: all install-data install-headers install-libs install-exec
164
165
166#
167# Install data files...
168#
169
c168a833 170install-data: $(INSTALL_LANGUAGES)
bd7854cb 171 $(INSTALL_DIR) -m 755 $(DOCDIR)
ef416fc2 172 for file in $(WEBPAGES); do \
173 $(INSTALL_MAN) $$file $(DOCDIR); \
174 done
bd7854cb 175 $(INSTALL_DIR) -m 755 $(DOCDIR)/help
ef416fc2 176 for file in $(HELPFILES); do \
177 $(INSTALL_MAN) $$file $(DOCDIR)/help; \
178 done
bd7854cb 179 $(INSTALL_DIR) -m 755 $(DOCDIR)/images
f11a948a 180 for file in $(WEBIMAGES) $(HELPIMAGES); do \
ef416fc2 181 $(INSTALL_MAN) $$file $(DOCDIR)/images; \
182 done
ed486911 183
184install-languages:
bd7854cb 185 for lang in $(LANGUAGES); do \
568fa3fa 186 if test -d $$lang; then \
c168a833 187 $(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang; \
b226ab99
MS
188 $(INSTALL_DATA) $$lang/index.html $(DOCDIR)/$$lang; \
189 $(INSTALL_DATA) $$lang/cups.css $(DOCDIR)/$$lang >/dev/null 2>&1 || true; \
c0e1af83 190 fi; \
757d2cad 191 done
192
0837b7e8
MS
193install-langbundle:
194
757d2cad 195
50fe7201
MS
196#
197# Install programs...
198#
199
200install-exec:
201
202
203#
204# Install headers...
205#
206
207install-headers:
208
209
210#
211# Install libraries...
212#
213
214install-libs:
215
216
757d2cad 217#
c168a833 218# Uninstall all documentation files...
757d2cad 219#
220
ed486911 221uninstall: $(UNINSTALL_LANGUAGES)
757d2cad 222 for file in $(WEBPAGES); do \
223 $(RM) $(DOCDIR)/$$file; \
224 done
225 for file in $(HELPFILES); do \
50fe7201 226 $(RM) $(DOCDIR)/$$file; \
757d2cad 227 done
2e4ff8af 228 for file in $(WEBIMAGES); do \
50fe7201 229 $(RM) $(DOCDIR)/$$file; \
757d2cad 230 done
ed486911 231 -$(RMDIR) $(DOCDIR)/images
232 -$(RMDIR) $(DOCDIR)/help
233 -$(RMDIR) $(DOCDIR)
234
235uninstall-languages:
757d2cad 236 -for lang in $(LANGUAGES); do \
237 $(RM) $(DOCDIR)/$$lang/index.html; \
c0e1af83 238 $(RM) $(DOCDIR)/$$lang/cups.css; \
757d2cad 239 $(RMDIR) $(DOCDIR)/$$lang; \
bd7854cb 240 done
ef416fc2 241
0837b7e8
MS
242install-langbundle:
243
ef416fc2 244
f11a948a
MS
245#
246# Install the docset bits locally...
247#
248
249docset:
250 cp $(HELPFILES) ../org.cups.docset/Contents/Resources/Documentation/help
251 cp cups-printable.css ../org.cups.docset/Contents/Resources/Documentation
252 cp $(HELPIMAGES) ../org.cups.docset/Contents/Resources/Documentation/images