2 # "$Id: Makefile 6657 2007-07-13 01:01:14Z mike $"
4 # Man page makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 2007-2008 by Apple Inc.
7 # Copyright 1993-2006 by Easy Software Products.
9 # These coded instructions, statements, and computer programs are the
10 # property of Apple Inc. and are protected by Federal copyright
11 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 # which should have been included with this file. If this file is
13 # file is missing or damaged, see the license at "http://www.cups.org/".
23 MAN1
= cancel.
$(MAN1EXT
) \
24 cups-config.
$(MAN1EXT
) \
25 cupstestdsc.
$(MAN1EXT
) \
26 cupstestppd.
$(MAN1EXT
) \
28 lpoptions.
$(MAN1EXT
) \
39 MAN5
= classes.conf.
$(MAN5EXT
) \
40 client.conf.
$(MAN5EXT
) \
41 cups-snmp.conf.
$(MAN5EXT
) \
42 cupsd.conf.
$(MAN5EXT
) \
43 mailto.conf.
$(MAN5EXT
) \
44 mime.convs.
$(MAN5EXT
) \
45 mime.types.
$(MAN5EXT
) \
47 printers.conf.
$(MAN5EXT
) \
48 subscriptions.conf.
$(MAN5EXT
)
49 MAN7
= backend.
$(MAN7EXT
) \
50 commandtoescpx.
$(MAN7EXT
) \
51 commandtopclx.
$(MAN7EXT
) \
54 rastertoescpx.
$(MAN7EXT
) \
55 rastertopclx.
$(MAN7EXT
)
56 MAN8
= accept.
$(MAN8EXT
) \
57 cupsaddsmb.
$(MAN8EXT
) \
59 cupsfilter.
$(MAN8EXT
) \
60 cups-deviced.
$(MAN8EXT
) \
61 cups-driverd.
$(MAN8EXT
) \
63 cups-polld.
$(MAN8EXT
) \
65 cupsenable.
$(MAN8EXT
) \
76 all: $(MAN1
) $(MAN5
) $(MAN7
) $(MAN8
) html
80 # Make library targets...
87 # Clean all config and object files...
91 $(RM
) mantohtml mantohtml.o
92 $(RM
) $(MAN1
) $(MAN5
) $(MAN7
) $(MAN8
)
93 for file in
$(MAN1
); do \
94 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN1EXT)`.html
; \
96 for file in
$(MAN5
); do \
97 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN5EXT)`.html
; \
99 for file in
$(MAN7
); do \
100 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN7EXT)`.html
; \
102 for file in
$(MAN8
); do \
103 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN8EXT)`.html
; \
108 # Dummy depend target...
115 # Install all targets...
118 install: all install-data install-headers install-libs install-exec
122 # Install data files...
126 $(INSTALL_DIR
) -m
755 $(MANDIR
)/man1
127 for file in
$(MAN1
); do \
128 echo Installing
$$file in
$(MANDIR
)/man1...
; \
129 $(INSTALL_MAN
) $$file $(MANDIR
)/man1
; \
131 $(INSTALL_DIR
) -m
755 $(MANDIR
)/man5
132 for file in
$(MAN5
); do \
133 echo Installing
$$file in
$(MANDIR
)/man5...
; \
134 $(INSTALL_MAN
) $$file $(MANDIR
)/man5
; \
136 $(INSTALL_DIR
) -m
755 $(MANDIR
)/man7
137 for file in
$(MAN7
); do \
138 echo Installing
$$file in
$(MANDIR
)/man7...
; \
139 $(INSTALL_MAN
) $$file $(MANDIR
)/man7
; \
141 $(INSTALL_DIR
) -m
755 $(AMANDIR
)/man
$(MAN8DIR
)
142 for file in
$(MAN8
); do \
143 echo Installing
$$file in
$(AMANDIR
)/man
$(MAN8DIR
)...
; \
144 $(INSTALL_MAN
) $$file $(AMANDIR
)/man
$(MAN8DIR
); \
146 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/reject.
$(MAN8EXT
)
147 $(LN
) accept.
$(MAN8EXT
) $(AMANDIR
)/man
$(MAN8DIR
)/reject.
$(MAN8EXT
)
148 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
149 $(LN
) cupsenable.
$(MAN8EXT
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
153 # Install programs...
167 # Install libraries...
178 for file in
$(MAN1
); do \
179 $(RM
) $(MANDIR
)/man1
/$$file; \
181 -$(RMDIR
) $(MANDIR
)/man1
182 for file in
$(MAN5
); do \
183 $(RM
) $(MANDIR
)/man5
/$$file; \
185 -$(RMDIR
) $(MANDIR
)/man5
186 for file in
$(MAN7
); do \
187 $(RM
) $(MANDIR
)/man7
/$$file; \
189 -$(RMDIR
) $(MANDIR
)/man7
190 for file in
$(MAN8
); do \
191 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/$$file; \
193 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/reject.
$(MAN8EXT
)
194 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
195 -$(RMDIR
) $(AMANDIR
)/man
$(MAN8DIR
)
199 # Make html versions of man pages...
202 html
: $(MAN1
) $(MAN5
) $(MAN7
) $(MAN8
) mantohtml
203 echo Converting man pages to HTML...
204 for file in
$(MAN1
); do \
206 .
/mantohtml
`basename $$file .$(MAN1EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN1EXT)`.html
; \
208 for file in
$(MAN5
); do \
210 .
/mantohtml
`basename $$file .$(MAN5EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN5EXT)`.html
; \
212 for file in
$(MAN7
); do \
214 .
/mantohtml
`basename $$file .$(MAN7EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN7EXT)`.html
; \
216 for file in
$(MAN8
); do \
218 .
/mantohtml
`basename $$file .$(MAN8EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN8EXT)`.html
; \
221 mantohtml
: mantohtml.o
222 $(CC
) $(ARCHFLAGS
) $(LDFLAGS
) -o
$@ mantohtml.o
226 # End of "$Id: Makefile 6657 2007-07-13 01:01:14Z mike $".