2 # "$Id: Makefile,v 1.36 2002/01/02 17:58:45 mike Exp $"
4 # Documentation makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1993-2002 by Easy Software Products.
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
15 # Attn: CUPS Licensing Information
16 # Easy Software Products
17 # 44141 Airport View Drive, Suite 204
18 # Hollywood, Maryland 20636-3111 USA
20 # Voice: (301) 373-9600
21 # EMail: cups-info@cups.org
22 # WWW: http://www.cups.org
28 # HTMLDOC generation rules...
31 .SUFFIXES
: .html .pdf .ps .shtml
34 htmldoc
--titleimage images
/cups-large.gif
--numbered
-f
$@
$<
37 htmldoc
--titleimage images
/cups-large.gif
--duplex
--compression
=9 \
38 --numbered
--jpeg
-f
$@
$<
41 htmldoc
--titleimage images
/cups-large.gif
--duplex
--numbered \
49 DOCUMENTS
= cmp.shtml idd.shtml ipp.shtml sam.shtml sdd.shtml \
50 spm.shtml sps.shtml ssr.shtml stp.shtml sum.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 \
62 images
/config-printer.gif \
64 images
/delete-class.gif \
65 images
/delete-printer.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 \
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 \
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
93 # Make all documents...
96 all: $(DOCUMENTS
:.shtml
=.pdf
) $(DOCUMENTS
:.shtml
=.html
) overview.pdf
103 ps
: $(DOCUMENTS
:.shtml
=.ps
) overview.ps
107 # Remove all generated files...
111 $(RM
) $(DOCUMENTS
:.shtml
=.pdf
)
112 $(RM
) $(DOCUMENTS
:.shtml
=.html
)
117 # Install all documentation files...
121 $(INSTALL_DIR
) $(DOCDIR
)
122 for file in
$(WEBPAGES
); do \
123 $(INSTALL_MAN
) $$file $(DOCDIR
); \
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
); \
130 for file in
$(DOCUMENTS
:.shtml
=.pdf
); do \
131 $(INSTALL_MAN
) $$file $(DOCDIR
); \
133 $(INSTALL_DIR
) $(DOCDIR
)/images
134 for file in
$(WEBIMAGES
) $(DOCIMAGES
); do \
135 $(INSTALL_MAN
) $$file $(DOCDIR
)/images
; \
140 # The overview, admin manual, programmers manual, and users manual get
141 # special attention...
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
152 echo Formatting
$@...
153 htmldoc
--titleimage images
/cups-large.gif
-f
$@
$<
155 echo Formatting
$@...
156 htmldoc
--titleimage images
/cups-large.gif
--duplex
--compression
=9 \
159 echo Formatting
$@...
160 htmldoc
--titleimage images
/cups-large.gif
--duplex
--jpeg
-f
$@
$<
163 echo Formatting
$@...
164 htmldoc
--titleimage images
/cups-large.gif
-f
$@
$<
166 echo Formatting
$@...
167 htmldoc
--titleimage images
/cups-large.gif
--duplex
--compression
=9 \
170 echo Formatting
$@...
171 htmldoc
--titleimage images
/cups-large.gif
--duplex
--jpeg
-f
$@
$<
174 echo Formatting
$@...
175 htmldoc
--titleimage images
/cups-large.gif
-f
$@
$<
177 echo Formatting
$@...
178 htmldoc
--titleimage images
/cups-large.gif
--duplex
--compression
=9 \
181 echo Formatting
$@...
182 htmldoc
--titleimage images
/cups-large.gif
--duplex
--jpeg
-f
$@
$<
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
218 $(DOCUMENTS
:.shtml
=.html
): \
219 glossary.shtml printing-overview.shtml \
220 references.shtml system-overview.shtml \
223 $(DOCUMENTS
:.shtml
=.pdf
): \
224 glossary.shtml printing-overview.shtml \
225 references.shtml system-overview.shtml \
228 $(DOCUMENTS
:.shtml
=.ps
): \
229 glossary.shtml printing-overview.shtml \
230 references.shtml system-overview.shtml \