2 # "$Id: Makefile,v 1.33 2001/03/02 03:45:34 andy Exp $"
4 # Documentation makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1993-2001 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...
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
134 # The overview, admin manual, programmers manual, and users manual get
135 # special attention...
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
146 echo Formatting
$@...
147 htmldoc
--titleimage images
/cups-large.gif
-f
$@
$<
149 echo Formatting
$@...
150 htmldoc
--titleimage images
/cups-large.gif
--duplex
--compression
=9 \
153 echo Formatting
$@...
154 htmldoc
--titleimage images
/cups-large.gif
--duplex
--jpeg
-f
$@
$<
157 echo Formatting
$@...
158 htmldoc
--titleimage images
/cups-large.gif
-f
$@
$<
160 echo Formatting
$@...
161 htmldoc
--titleimage images
/cups-large.gif
--duplex
--compression
=9 \
164 echo Formatting
$@...
165 htmldoc
--titleimage images
/cups-large.gif
--duplex
--jpeg
-f
$@
$<
168 echo Formatting
$@...
169 htmldoc
--titleimage images
/cups-large.gif
-f
$@
$<
171 echo Formatting
$@...
172 htmldoc
--titleimage images
/cups-large.gif
--duplex
--compression
=9 \
175 echo Formatting
$@...
176 htmldoc
--titleimage images
/cups-large.gif
--duplex
--jpeg
-f
$@
$<
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
212 $(DOCUMENTS
:.shtml
=.html
): \
213 glossary.shtml printing-overview.shtml \
214 references.shtml system-overview.shtml \
217 $(DOCUMENTS
:.shtml
=.pdf
): \
218 glossary.shtml printing-overview.shtml \
219 references.shtml system-overview.shtml \
222 $(DOCUMENTS
:.shtml
=.ps
): \
223 glossary.shtml printing-overview.shtml \
224 references.shtml system-overview.shtml \