4 # Man page makefile for CUPS.
6 # Copyright 2007-2012 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
) \
29 lpoptions.
$(MAN1EXT
) \
40 MAN5
= classes.conf.
$(MAN5EXT
) \
41 client.conf.
$(MAN5EXT
) \
42 cups-files.conf.
$(MAN5EXT
) \
43 cups-snmp.conf.
$(MAN5EXT
) \
44 cupsd.conf.
$(MAN5EXT
) \
45 ipptoolfile.
$(MAN5EXT
) \
46 mailto.conf.
$(MAN5EXT
) \
47 mime.convs.
$(MAN5EXT
) \
48 mime.types.
$(MAN5EXT
) \
50 printers.conf.
$(MAN5EXT
) \
51 subscriptions.conf.
$(MAN5EXT
)
52 MAN7
= backend.
$(MAN7EXT
) \
55 MAN8
= cupsaccept.
$(MAN8EXT
) \
56 cupsaddsmb.
$(MAN8EXT
) \
58 cupsfilter.
$(MAN8EXT
) \
59 cups-deviced.
$(MAN8EXT
) \
60 cups-driverd.
$(MAN8EXT
) \
62 cups-snmp.
$(MAN8EXT
) \
64 cupsenable.
$(MAN8EXT
) \
75 all: $(MAN1
) $(MAN5
) $(MAN7
) $(MAN8
) html
79 # Make library targets...
93 # Clean all config and object files...
97 $(RM
) mantohtml mantohtml.o
98 $(RM
) $(MAN1
) $(MAN5
) $(MAN7
) $(MAN8
)
99 for file in
$(MAN1
); do \
100 if
test $$file != ipptool.
$(MAN1EXT
); then \
101 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN1EXT)`.html
; \
104 for file in
$(MAN5
); do \
105 if
test $$file != ipptoolfile.
$(MAN5EXT
); then \
106 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN5EXT)`.html
; \
109 for file in
$(MAN7
); do \
110 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN7EXT)`.html
; \
112 for file in
$(MAN8
); do \
113 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN8EXT)`.html
; \
118 # Dummy depend target...
125 # Install all targets...
128 install: all install-data install-headers install-libs install-exec
132 # Install data files...
136 $(INSTALL_DIR
) -m
755 $(MANDIR
)/man1
137 for file in
$(MAN1
); do \
138 echo Installing
$$file in
$(MANDIR
)/man1...
; \
139 $(INSTALL_MAN
) $$file $(MANDIR
)/man1
; \
141 $(INSTALL_DIR
) -m
755 $(MANDIR
)/man5
142 for file in
$(MAN5
); do \
143 echo Installing
$$file in
$(MANDIR
)/man5...
; \
144 $(INSTALL_MAN
) $$file $(MANDIR
)/man5
; \
146 $(INSTALL_DIR
) -m
755 $(MANDIR
)/man7
147 for file in
$(MAN7
); do \
148 echo Installing
$$file in
$(MANDIR
)/man7...
; \
149 $(INSTALL_MAN
) $$file $(MANDIR
)/man7
; \
151 $(INSTALL_DIR
) -m
755 $(AMANDIR
)/man
$(MAN8DIR
)
152 for file in
$(MAN8
); do \
153 echo Installing
$$file in
$(AMANDIR
)/man
$(MAN8DIR
)...
; \
154 $(INSTALL_MAN
) $$file $(AMANDIR
)/man
$(MAN8DIR
); \
156 for file in accept cupsreject reject
; do \
157 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/$$file.
$(MAN8EXT
); \
158 $(LN
) cupsaccept.
$(MAN8EXT
) $(AMANDIR
)/man
$(MAN8DIR
)/$$file.
$(MAN8EXT
); \
160 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
161 $(LN
) cupsenable.
$(MAN8EXT
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
165 # Install programs...
179 # Install libraries...
190 for file in
$(MAN1
); do \
191 $(RM
) $(MANDIR
)/man1
/$$file; \
193 -$(RMDIR
) $(MANDIR
)/man1
194 for file in
$(MAN5
); do \
195 $(RM
) $(MANDIR
)/man5
/$$file; \
197 -$(RMDIR
) $(MANDIR
)/man5
198 for file in
$(MAN7
); do \
199 $(RM
) $(MANDIR
)/man7
/$$file; \
201 -$(RMDIR
) $(MANDIR
)/man7
202 for file in
$(MAN8
); do \
203 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/$$file; \
205 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/accept.
$(MAN8EXT
)
206 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsreject.
$(MAN8EXT
)
207 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/reject.
$(MAN8EXT
)
208 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
209 -$(RMDIR
) $(AMANDIR
)/man
$(MAN8DIR
)
213 # Make html versions of man pages...
216 html
: $(MAN1
) $(MAN5
) $(MAN7
) $(MAN8
) mantohtml
217 echo Converting man pages to HTML...
218 for file in
$(MAN1
); do \
220 .
/mantohtml
`basename $$file .$(MAN1EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN1EXT)`.html
; \
222 for file in
$(MAN5
); do \
224 .
/mantohtml
`basename $$file .$(MAN5EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN5EXT)`.html
; \
226 for file in
$(MAN7
); do \
228 .
/mantohtml
`basename $$file .$(MAN7EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN7EXT)`.html
; \
230 for file in
$(MAN8
); do \
232 .
/mantohtml
`basename $$file .$(MAN8EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN8EXT)`.html
; \
235 mantohtml
: mantohtml.o
236 $(CC
) $(ARCHFLAGS
) $(LDFLAGS
) -o
$@ mantohtml.o