]> git.ipfire.org Git - thirdparty/cups.git/blob - doc/Makefile
Copyright updates
[thirdparty/cups.git] / doc / Makefile
1 #
2 # "$Id: Makefile,v 1.33 2001/03/02 03:45:34 andy Exp $"
3 #
4 # Documentation makefile for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 1993-2001 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 -$(MKDIR) $(DOCDIR)
122 $(CHMOD) ugo+rx $(DOCDIR)
123 $(INSTALL_MAN) $(WEBPAGES) $(DOCDIR)
124 $(INSTALL_MAN) overview.html overview.pdf $(DOCDIR)
125 $(INSTALL_MAN) $(DOCUMENTS:.shtml=.html) $(DOCDIR)
126 $(INSTALL_MAN) $(DOCUMENTS:.shtml=.pdf) $(DOCDIR)
127 -$(MKDIR) $(DOCDIR)/images
128 $(CHMOD) ugo+rx $(DOCDIR)/images
129 $(INSTALL_MAN) $(WEBIMAGES) $(DOCDIR)/images
130 $(INSTALL_MAN) $(DOCIMAGES) $(DOCDIR)/images
131
132
133 #
134 # The overview, admin manual, programmers manual, and users manual get
135 # special attention...
136 #
137
138 overview.pdf: overview.html
139 echo Formatting $@...
140 htmldoc --duplex --compression=9 --jpeg --webpage -f overview.pdf overview.html
141 overview.ps: overview.html
142 echo Formatting $@...
143 htmldoc --duplex --jpeg --webpage -f overview.ps overview.html
144
145 sam.html: sam.shtml
146 echo Formatting $@...
147 htmldoc --titleimage images/cups-large.gif -f $@ $<
148 sam.pdf: sam.shtml
149 echo Formatting $@...
150 htmldoc --titleimage images/cups-large.gif --duplex --compression=9 \
151 --jpeg -f $@ $<
152 sam.ps: sam.shtml
153 echo Formatting $@...
154 htmldoc --titleimage images/cups-large.gif --duplex --jpeg -f $@ $<
155
156 spm.html: spm.shtml
157 echo Formatting $@...
158 htmldoc --titleimage images/cups-large.gif -f $@ $<
159 spm.pdf: spm.shtml
160 echo Formatting $@...
161 htmldoc --titleimage images/cups-large.gif --duplex --compression=9 \
162 --jpeg -f $@ $<
163 spm.ps: spm.shtml
164 echo Formatting $@...
165 htmldoc --titleimage images/cups-large.gif --duplex --jpeg -f $@ $<
166
167 sum.html: sum.shtml
168 echo Formatting $@...
169 htmldoc --titleimage images/cups-large.gif -f $@ $<
170 sum.pdf: sum.shtml
171 echo Formatting $@...
172 htmldoc --titleimage images/cups-large.gif --duplex --compression=9 \
173 --jpeg -f $@ $<
174 sum.ps: sum.shtml
175 echo Formatting $@...
176 htmldoc --titleimage images/cups-large.gif --duplex --jpeg -f $@ $<
177
178 sam-7x8.pdf: sam.shtml
179 echo Formatting $@...
180 htmldoc --titleimage images/cups-large.gif --duplex --compression=9 \
181 --pagelayout tworight --pagemode document \
182 --jpeg --size 7x8.5in --left 0.5in --right 0.25in \
183 --top 0.25in --bottom 0.25in --fontsize 10 --headfootsize 10 -f $@ sam.shtml
184 sam-7x8.ps: sam.shtml
185 echo Formatting $@...
186 htmldoc --titleimage images/cups-large.gif --duplex --jpeg \
187 --size 7x8.5in --left 0.5in --right 0.25in \
188 --top 0.25in --bottom 0.25in --fontsize 10 --headfootsize 10 -f $@ sam.shtml
189 spm-7x8.pdf: spm.shtml
190 echo Formatting $@...
191 htmldoc --titleimage images/cups-large.gif --duplex --compression=9 \
192 --pagelayout tworight --pagemode document \
193 --jpeg --size 7x8.5in --left 0.5in --right 0.25in \
194 --top 0.25in --bottom 0.25in --fontsize 10 --headfootsize 10 -f $@ spm.shtml
195 spm-7x8.ps: spm.shtml
196 echo Formatting $@...
197 htmldoc --titleimage images/cups-large.gif --duplex --jpeg \
198 --size 7x8.5in --left 0.5in --right 0.25in \
199 --top 0.25in --bottom 0.25in --fontsize 10 --headfootsize 10 -f $@ spm.shtml
200 sum-7x8.pdf: sum.shtml
201 echo Formatting $@...
202 htmldoc --titleimage images/cups-large.gif --duplex --compression=9 \
203 --pagelayout tworight --pagemode document \
204 --jpeg --size 7x8.5in --left 0.5in --right 0.25in \
205 --top 0.25in --bottom 0.25in --fontsize 10 --headfootsize 10 -f $@ sum.shtml
206 sum-7x8.ps: sum.shtml
207 echo Formatting $@...
208 htmldoc --titleimage images/cups-large.gif --duplex --jpeg \
209 --size 7x8.5in --left 0.5in --right 0.25in \
210 --top 0.25in --bottom 0.25in --fontsize 10 --headfootsize 10 -f $@ sum.shtml
211
212 $(DOCUMENTS:.shtml=.html): \
213 glossary.shtml printing-overview.shtml \
214 references.shtml system-overview.shtml \
215 ../LICENSE.html
216
217 $(DOCUMENTS:.shtml=.pdf): \
218 glossary.shtml printing-overview.shtml \
219 references.shtml system-overview.shtml \
220 ../LICENSE.html
221
222 $(DOCUMENTS:.shtml=.ps): \
223 glossary.shtml printing-overview.shtml \
224 references.shtml system-overview.shtml \
225 ../LICENSE.html
226
227
228 #
229 # End of Makefile.
230 #