4 # Documentation makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1993-2005 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 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 \
44 HTMLDOC
= htmldoc
--strict
--quiet
--bodycolor white
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 \
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 \
65 images
/config-printer.gif \
67 images
/delete-class.gif \
68 images
/delete-printer.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 \
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 \
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
97 # Make all documents...
100 all: $(DOCUMENTS
:.shtml
=.pdf
) $(DOCUMENTS
:.shtml
=.html
) overview.pdf
107 ps
: $(DOCUMENTS
:.shtml
=.ps
) overview.ps
111 # Remove all generated files...
115 $(RM
) $(DOCUMENTS
:.shtml
=.pdf
)
116 $(RM
) $(DOCUMENTS
:.shtml
=.html
)
121 # Install all documentation files...
125 $(INSTALL_DIR
) $(DOCDIR
)
126 for file in
$(WEBPAGES
); do \
127 $(INSTALL_MAN
) $$file $(DOCDIR
); \
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
); \
134 for file in
$(DOCUMENTS
:.shtml
=.pdf
); do \
135 $(INSTALL_MAN
) $$file $(DOCDIR
); \
137 $(INSTALL_DIR
) $(DOCDIR
)/images
138 for file in
$(WEBIMAGES
) $(DOCIMAGES
); do \
139 $(INSTALL_MAN
) $$file $(DOCDIR
)/images
; \
144 # The overview, admin manual, programmers manual, and users manual get
145 # special attention...
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
156 echo Formatting
$@...
157 $(HTMLDOC
) --titleimage images
/cups-large.gif
-f
$@
$<
159 echo Formatting
$@...
160 $(HTMLDOC
) --titleimage images
/cups-large.gif
--duplex
--compression
=9 \
163 echo Formatting
$@...
164 $(HTMLDOC
) --titleimage images
/cups-large.gif
--duplex
--jpeg
-f
$@
$<
167 echo Formatting
$@...
168 $(HTMLDOC
) --titleimage images
/cups-large.gif
-f
$@
$<
170 echo Formatting
$@...
171 $(HTMLDOC
) --titleimage images
/cups-large.gif
--duplex
--compression
=9 \
174 echo Formatting
$@...
175 $(HTMLDOC
) --titleimage images
/cups-large.gif
--duplex
--jpeg
-f
$@
$<
178 echo Formatting
$@...
179 $(HTMLDOC
) --titleimage images
/cups-large.gif
-f
$@
$<
181 echo Formatting
$@...
182 $(HTMLDOC
) --titleimage images
/cups-large.gif
--duplex
--compression
=9 \
185 echo Formatting
$@...
186 $(HTMLDOC
) --titleimage images
/cups-large.gif
--duplex
--jpeg
-f
$@
$<
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
222 $(DOCUMENTS
:.shtml
=.html
): \
223 glossary.shtml printing-overview.shtml \
224 references.shtml system-overview.shtml \
227 $(DOCUMENTS
:.shtml
=.pdf
): \
228 glossary.shtml printing-overview.shtml \
229 references.shtml system-overview.shtml \
232 $(DOCUMENTS
:.shtml
=.ps
): \
233 glossary.shtml printing-overview.shtml \
234 references.shtml system-overview.shtml \