]> git.ipfire.org Git - thirdparty/cups.git/blob - doc/Makefile
Copyright update...
[thirdparty/cups.git] / doc / Makefile
1 #
2 # "$Id: Makefile,v 1.36 2002/01/02 17:58:45 mike Exp $"
3 #
4 # Documentation makefile for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 1993-2002 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-3111 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
45 #
46 # Document files...
47 #
48
49 DOCUMENTS = cmp.shtml idd.shtml ipp.shtml sam.shtml sdd.shtml \
50 spm.shtml sps.shtml ssr.shtml stp.shtml sum.shtml \
51 svd.shtml
52 DOCIMAGES = images/cups-block-diagram.gif images/cups-large.gif \
53 images/cups-medium.gif images/cups-small.gif
54 WEBPAGES = cups.css cupsdoc.css index.html documentation.html
55 WEBIMAGES = images/accept-jobs.gif \
56 images/add-class.gif \
57 images/add-printer.gif \
58 images/cancel-job.gif \
59 images/cancel-jobs.gif \
60 images/cancel.gif \
61 images/classes.gif \
62 images/config-printer.gif \
63 images/continue.gif \
64 images/delete-class.gif \
65 images/delete-printer.gif \
66 images/draft.gif \
67 images/hold-job.gif \
68 images/left.gif \
69 images/logo.gif \
70 images/manage-classes.gif \
71 images/manage-jobs.gif \
72 images/manage-printers.gif \
73 images/modify-class.gif \
74 images/modify-printer.gif \
75 images/navbar.gif \
76 images/print-test-page.gif \
77 images/printer-idle.gif \
78 images/printer-processing.gif \
79 images/printer-stopped.gif \
80 images/reject-jobs.gif \
81 images/release-job.gif \
82 images/restart-job.gif \
83 images/right.gif \
84 images/show-active.gif \
85 images/show-completed.gif \
86 images/start-class.gif \
87 images/start-printer.gif \
88 images/stop-class.gif \
89 images/stop-printer.gif
90
91
92 #
93 # Make all documents...
94 #
95
96 all: $(DOCUMENTS:.shtml=.pdf) $(DOCUMENTS:.shtml=.html) overview.pdf
97
98
99 #
100 # Make PS files...
101 #
102
103 ps: $(DOCUMENTS:.shtml=.ps) overview.ps
104
105
106 #
107 # Remove all generated files...
108 #
109
110 clean:
111 $(RM) $(DOCUMENTS:.shtml=.pdf)
112 $(RM) $(DOCUMENTS:.shtml=.html)
113 $(RM) overview.pdf
114
115
116 #
117 # Install all documentation files...
118 #
119
120 install:
121 $(INSTALL_DIR) $(DOCDIR)
122 for file in $(WEBPAGES); do \
123 $(INSTALL_MAN) $$file $(DOCDIR); \
124 done
125 $(INSTALL_MAN) overview.html $(DOCDIR)
126 $(INSTALL_MAN) overview.pdf $(DOCDIR)
127 for file in $(DOCUMENTS:.shtml=.html); do \
128 $(INSTALL_MAN) $$file $(DOCDIR); \
129 done
130 for file in $(DOCUMENTS:.shtml=.pdf); do \
131 $(INSTALL_MAN) $$file $(DOCDIR); \
132 done
133 $(INSTALL_DIR) $(DOCDIR)/images
134 for file in $(WEBIMAGES) $(DOCIMAGES); do \
135 $(INSTALL_MAN) $$file $(DOCDIR)/images; \
136 done
137
138
139 #
140 # The overview, admin manual, programmers manual, and users manual get
141 # special attention...
142 #
143
144 overview.pdf: overview.html
145 echo Formatting $@...
146 htmldoc --duplex --compression=9 --jpeg --webpage -f overview.pdf overview.html
147 overview.ps: overview.html
148 echo Formatting $@...
149 htmldoc --duplex --jpeg --webpage -f overview.ps overview.html
150
151 sam.html: sam.shtml
152 echo Formatting $@...
153 htmldoc --titleimage images/cups-large.gif -f $@ $<
154 sam.pdf: sam.shtml
155 echo Formatting $@...
156 htmldoc --titleimage images/cups-large.gif --duplex --compression=9 \
157 --jpeg -f $@ $<
158 sam.ps: sam.shtml
159 echo Formatting $@...
160 htmldoc --titleimage images/cups-large.gif --duplex --jpeg -f $@ $<
161
162 spm.html: spm.shtml
163 echo Formatting $@...
164 htmldoc --titleimage images/cups-large.gif -f $@ $<
165 spm.pdf: spm.shtml
166 echo Formatting $@...
167 htmldoc --titleimage images/cups-large.gif --duplex --compression=9 \
168 --jpeg -f $@ $<
169 spm.ps: spm.shtml
170 echo Formatting $@...
171 htmldoc --titleimage images/cups-large.gif --duplex --jpeg -f $@ $<
172
173 sum.html: sum.shtml
174 echo Formatting $@...
175 htmldoc --titleimage images/cups-large.gif -f $@ $<
176 sum.pdf: sum.shtml
177 echo Formatting $@...
178 htmldoc --titleimage images/cups-large.gif --duplex --compression=9 \
179 --jpeg -f $@ $<
180 sum.ps: sum.shtml
181 echo Formatting $@...
182 htmldoc --titleimage images/cups-large.gif --duplex --jpeg -f $@ $<
183
184 sam-7x8.pdf: sam.shtml
185 echo Formatting $@...
186 htmldoc --titleimage images/cups-large.gif --duplex --compression=9 \
187 --pagelayout tworight --pagemode document \
188 --jpeg --size 7x8.5in --left 0.5in --right 0.25in \
189 --top 0.25in --bottom 0.25in --fontsize 10 --headfootsize 10 -f $@ sam.shtml
190 sam-7x8.ps: sam.shtml
191 echo Formatting $@...
192 htmldoc --titleimage images/cups-large.gif --duplex --jpeg \
193 --size 7x8.5in --left 0.5in --right 0.25in \
194 --top 0.25in --bottom 0.25in --fontsize 10 --headfootsize 10 -f $@ sam.shtml
195 spm-7x8.pdf: spm.shtml
196 echo Formatting $@...
197 htmldoc --titleimage images/cups-large.gif --duplex --compression=9 \
198 --pagelayout tworight --pagemode document \
199 --jpeg --size 7x8.5in --left 0.5in --right 0.25in \
200 --top 0.25in --bottom 0.25in --fontsize 10 --headfootsize 10 -f $@ spm.shtml
201 spm-7x8.ps: spm.shtml
202 echo Formatting $@...
203 htmldoc --titleimage images/cups-large.gif --duplex --jpeg \
204 --size 7x8.5in --left 0.5in --right 0.25in \
205 --top 0.25in --bottom 0.25in --fontsize 10 --headfootsize 10 -f $@ spm.shtml
206 sum-7x8.pdf: sum.shtml
207 echo Formatting $@...
208 htmldoc --titleimage images/cups-large.gif --duplex --compression=9 \
209 --pagelayout tworight --pagemode document \
210 --jpeg --size 7x8.5in --left 0.5in --right 0.25in \
211 --top 0.25in --bottom 0.25in --fontsize 10 --headfootsize 10 -f $@ sum.shtml
212 sum-7x8.ps: sum.shtml
213 echo Formatting $@...
214 htmldoc --titleimage images/cups-large.gif --duplex --jpeg \
215 --size 7x8.5in --left 0.5in --right 0.25in \
216 --top 0.25in --bottom 0.25in --fontsize 10 --headfootsize 10 -f $@ sum.shtml
217
218 $(DOCUMENTS:.shtml=.html): \
219 glossary.shtml printing-overview.shtml \
220 references.shtml system-overview.shtml \
221 ../LICENSE.html
222
223 $(DOCUMENTS:.shtml=.pdf): \
224 glossary.shtml printing-overview.shtml \
225 references.shtml system-overview.shtml \
226 ../LICENSE.html
227
228 $(DOCUMENTS:.shtml=.ps): \
229 glossary.shtml printing-overview.shtml \
230 references.shtml system-overview.shtml \
231 ../LICENSE.html
232
233
234 #
235 # End of Makefile.
236 #