]> git.ipfire.org Git - thirdparty/cups.git/blob - doc/Makefile
Update copyright notices, addresses, etc.
[thirdparty/cups.git] / doc / Makefile
1 #
2 # "$Id$"
3 #
4 # Documentation makefile for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 1993-2005 by Easy Software Products.
7 #
8 # These coded instructions, statements, and computer programs are the
9 # property of Easy Software Products and are protected by Federal
10 # copyright law. Distribution and use rights are outlined in the file
11 # "LICENSE.txt" which should have been included with this file. If this
12 # file is missing or damaged please contact Easy Software Products
13 # at:
14 #
15 # Attn: CUPS Licensing Information
16 # Easy Software Products
17 # 44141 Airport View Drive, Suite 204
18 # Hollywood, Maryland 20636 USA
19 #
20 # Voice: (301) 373-9600
21 # EMail: cups-info@cups.org
22 # WWW: http://www.cups.org
23 #
24
25 include ../Makedefs
26
27 #
28 # HTMLDOC generation rules...
29 #
30
31 .SUFFIXES: .html .pdf .ps .shtml
32 .shtml.html:
33 echo Formatting $@...
34 $(HTMLDOC) --titleimage images/cups-large.gif --numbered -f $@ $<
35 .shtml.pdf:
36 echo Formatting $@...
37 $(HTMLDOC) --titleimage images/cups-large.gif --duplex --compression=9 \
38 --numbered --jpeg -f $@ $<
39 .shtml.ps:
40 echo Formatting $@...
41 $(HTMLDOC) --titleimage images/cups-large.gif --duplex --numbered \
42 --jpeg -f $@ $<
43
44 HTMLDOC = htmldoc --strict --quiet --bodycolor white
45
46
47 #
48 # Document files...
49 #
50
51 DOCUMENTS = cmp.shtml idd.shtml ipp.shtml ppd.shtml sam.shtml \
52 sdd.shtml spm.shtml sps.shtml ssr.shtml stp.shtml \
53 sum.shtml svd.shtml translation.shtml
54 DOCIMAGES = images/cups-block-diagram.gif images/cups-large.gif \
55 images/cups-medium.gif images/cups-small.gif
56 WEBPAGES = cups.css cupsdoc.css index.html documentation.html \
57 robots.txt
58 WEBIMAGES = images/accept-jobs.gif \
59 images/add-class.gif \
60 images/add-printer.gif \
61 images/cancel-job.gif \
62 images/cancel-jobs.gif \
63 images/cancel.gif \
64 images/classes.gif \
65 images/config-printer.gif \
66 images/continue.gif \
67 images/delete-class.gif \
68 images/delete-printer.gif \
69 images/draft.gif \
70 images/hold-job.gif \
71 images/left.gif \
72 images/logo.gif \
73 images/manage-classes.gif \
74 images/manage-jobs.gif \
75 images/manage-printers.gif \
76 images/modify-class.gif \
77 images/modify-printer.gif \
78 images/navbar.gif \
79 images/print-test-page.gif \
80 images/printer-idle.gif \
81 images/printer-processing.gif \
82 images/printer-stopped.gif \
83 images/reject-jobs.gif \
84 images/release-job.gif \
85 images/restart-job.gif \
86 images/right.gif \
87 images/set-as-default.gif \
88 images/show-active.gif \
89 images/show-completed.gif \
90 images/start-class.gif \
91 images/start-printer.gif \
92 images/stop-class.gif \
93 images/stop-printer.gif
94
95
96 #
97 # Make all documents...
98 #
99
100 all: $(DOCUMENTS:.shtml=.pdf) $(DOCUMENTS:.shtml=.html) overview.pdf
101
102
103 #
104 # Make PS files...
105 #
106
107 ps: $(DOCUMENTS:.shtml=.ps) overview.ps
108
109
110 #
111 # Remove all generated files...
112 #
113
114 clean:
115 $(RM) $(DOCUMENTS:.shtml=.pdf)
116 $(RM) $(DOCUMENTS:.shtml=.html)
117 $(RM) overview.pdf
118
119
120 #
121 # Install all documentation files...
122 #
123
124 install:
125 $(INSTALL_DIR) $(DOCDIR)
126 for file in $(WEBPAGES); do \
127 $(INSTALL_MAN) $$file $(DOCDIR); \
128 done
129 $(INSTALL_MAN) overview.html $(DOCDIR)
130 $(INSTALL_MAN) overview.pdf $(DOCDIR)
131 for file in $(DOCUMENTS:.shtml=.html); do \
132 $(INSTALL_MAN) $$file $(DOCDIR); \
133 done
134 for file in $(DOCUMENTS:.shtml=.pdf); do \
135 $(INSTALL_MAN) $$file $(DOCDIR); \
136 done
137 $(INSTALL_DIR) $(DOCDIR)/images
138 for file in $(WEBIMAGES) $(DOCIMAGES); do \
139 $(INSTALL_MAN) $$file $(DOCDIR)/images; \
140 done
141
142
143 #
144 # The overview, admin manual, programmers manual, and users manual get
145 # special attention...
146 #
147
148 overview.pdf: overview.html
149 echo Formatting $@...
150 $(HTMLDOC) --duplex --compression=9 --jpeg --webpage -f overview.pdf overview.html
151 overview.ps: overview.html
152 echo Formatting $@...
153 $(HTMLDOC) --duplex --jpeg --webpage -f overview.ps overview.html
154
155 sam.html: sam.shtml
156 echo Formatting $@...
157 $(HTMLDOC) --titleimage images/cups-large.gif -f $@ $<
158 sam.pdf: sam.shtml
159 echo Formatting $@...
160 $(HTMLDOC) --titleimage images/cups-large.gif --duplex --compression=9 \
161 --jpeg -f $@ $<
162 sam.ps: sam.shtml
163 echo Formatting $@...
164 $(HTMLDOC) --titleimage images/cups-large.gif --duplex --jpeg -f $@ $<
165
166 spm.html: spm.shtml
167 echo Formatting $@...
168 $(HTMLDOC) --titleimage images/cups-large.gif -f $@ $<
169 spm.pdf: spm.shtml
170 echo Formatting $@...
171 $(HTMLDOC) --titleimage images/cups-large.gif --duplex --compression=9 \
172 --jpeg -f $@ $<
173 spm.ps: spm.shtml
174 echo Formatting $@...
175 $(HTMLDOC) --titleimage images/cups-large.gif --duplex --jpeg -f $@ $<
176
177 sum.html: sum.shtml
178 echo Formatting $@...
179 $(HTMLDOC) --titleimage images/cups-large.gif -f $@ $<
180 sum.pdf: sum.shtml
181 echo Formatting $@...
182 $(HTMLDOC) --titleimage images/cups-large.gif --duplex --compression=9 \
183 --jpeg -f $@ $<
184 sum.ps: sum.shtml
185 echo Formatting $@...
186 $(HTMLDOC) --titleimage images/cups-large.gif --duplex --jpeg -f $@ $<
187
188 sam-7x8.pdf: sam.shtml
189 echo Formatting $@...
190 $(HTMLDOC) --titleimage images/cups-large.gif --duplex --compression=9 \
191 --pagelayout tworight --pagemode document \
192 --jpeg --size 7x8.5in --left 0.5in --right 0.25in \
193 --top 0.25in --bottom 0.25in --fontsize 10 --headfootsize 10 -f $@ sam.shtml
194 sam-7x8.ps: sam.shtml
195 echo Formatting $@...
196 $(HTMLDOC) --titleimage images/cups-large.gif --duplex --jpeg \
197 --size 7x8.5in --left 0.5in --right 0.25in \
198 --top 0.25in --bottom 0.25in --fontsize 10 --headfootsize 10 -f $@ sam.shtml
199 spm-7x8.pdf: spm.shtml
200 echo Formatting $@...
201 $(HTMLDOC) --titleimage images/cups-large.gif --duplex --compression=9 \
202 --pagelayout tworight --pagemode document \
203 --jpeg --size 7x8.5in --left 0.5in --right 0.25in \
204 --top 0.25in --bottom 0.25in --fontsize 10 --headfootsize 10 -f $@ spm.shtml
205 spm-7x8.ps: spm.shtml
206 echo Formatting $@...
207 $(HTMLDOC) --titleimage images/cups-large.gif --duplex --jpeg \
208 --size 7x8.5in --left 0.5in --right 0.25in \
209 --top 0.25in --bottom 0.25in --fontsize 10 --headfootsize 10 -f $@ spm.shtml
210 sum-7x8.pdf: sum.shtml
211 echo Formatting $@...
212 $(HTMLDOC) --titleimage images/cups-large.gif --duplex --compression=9 \
213 --pagelayout tworight --pagemode document \
214 --jpeg --size 7x8.5in --left 0.5in --right 0.25in \
215 --top 0.25in --bottom 0.25in --fontsize 10 --headfootsize 10 -f $@ sum.shtml
216 sum-7x8.ps: sum.shtml
217 echo Formatting $@...
218 $(HTMLDOC) --titleimage images/cups-large.gif --duplex --jpeg \
219 --size 7x8.5in --left 0.5in --right 0.25in \
220 --top 0.25in --bottom 0.25in --fontsize 10 --headfootsize 10 -f $@ sum.shtml
221
222 $(DOCUMENTS:.shtml=.html): \
223 glossary.shtml printing-overview.shtml \
224 references.shtml system-overview.shtml \
225 ../LICENSE.html
226
227 $(DOCUMENTS:.shtml=.pdf): \
228 glossary.shtml printing-overview.shtml \
229 references.shtml system-overview.shtml \
230 ../LICENSE.html
231
232 $(DOCUMENTS:.shtml=.ps): \
233 glossary.shtml printing-overview.shtml \
234 references.shtml system-overview.shtml \
235 ../LICENSE.html
236
237
238 #
239 # End of Makefile.
240 #