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
) \
53 rastertoescpx.
$(MAN7EXT
) \
54 rastertopclx.
$(MAN7EXT
)
55 MAN8
= accept.
$(MAN8EXT
) \
56 cupsaddsmb.
$(MAN8EXT
) \
58 cupsfilter.
$(MAN8EXT
) \
59 cups-deviced.
$(MAN8EXT
) \
60 cups-driverd.
$(MAN8EXT
) \
62 cups-polld.
$(MAN8EXT
) \
64 cupsenable.
$(MAN8EXT
) \
75 all: $(MAN1
) $(MAN5
) $(MAN7
) $(MAN8
) html
79 # Make library targets...
86 # Clean all config and object files...
90 $(RM
) mantohtml mantohtml.o
91 $(RM
) $(MAN1
) $(MAN5
) $(MAN7
) $(MAN8
)
92 for file in
$(MAN1
); do \
93 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN1EXT)`.html
; \
95 for file in
$(MAN5
); do \
96 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN5EXT)`.html
; \
98 for file in
$(MAN7
); do \
99 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN7EXT)`.html
; \
101 for file in
$(MAN8
); do \
102 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN8EXT)`.html
; \
107 # Dummy depend target...
114 # Install all targets...
117 install: all install-data install-headers install-libs install-exec
121 # Install data files...
125 $(INSTALL_DIR
) -m
755 $(MANDIR
)/man1
126 for file in
$(MAN1
); do \
127 echo Installing
$$file in
$(MANDIR
)/man1...
; \
128 $(INSTALL_MAN
) $$file $(MANDIR
)/man1
; \
130 $(INSTALL_DIR
) -m
755 $(MANDIR
)/man5
131 for file in
$(MAN5
); do \
132 echo Installing
$$file in
$(MANDIR
)/man5...
; \
133 $(INSTALL_MAN
) $$file $(MANDIR
)/man5
; \
135 $(INSTALL_DIR
) -m
755 $(MANDIR
)/man7
136 for file in
$(MAN7
); do \
137 echo Installing
$$file in
$(MANDIR
)/man7...
; \
138 $(INSTALL_MAN
) $$file $(MANDIR
)/man7
; \
140 $(INSTALL_DIR
) -m
755 $(AMANDIR
)/man
$(MAN8DIR
)
141 for file in
$(MAN8
); do \
142 echo Installing
$$file in
$(AMANDIR
)/man
$(MAN8DIR
)...
; \
143 $(INSTALL_MAN
) $$file $(AMANDIR
)/man
$(MAN8DIR
); \
145 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/reject.
$(MAN8EXT
)
146 $(LN
) accept.
$(MAN8EXT
) $(AMANDIR
)/man
$(MAN8DIR
)/reject.
$(MAN8EXT
)
147 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
148 $(LN
) cupsenable.
$(MAN8EXT
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
152 # Install programs...
166 # Install libraries...
177 for file in
$(MAN1
); do \
178 $(RM
) $(MANDIR
)/man1
/$$file; \
180 -$(RMDIR
) $(MANDIR
)/man1
181 for file in
$(MAN5
); do \
182 $(RM
) $(MANDIR
)/man5
/$$file; \
184 -$(RMDIR
) $(MANDIR
)/man5
185 for file in
$(MAN7
); do \
186 $(RM
) $(MANDIR
)/man7
/$$file; \
188 -$(RMDIR
) $(MANDIR
)/man7
189 for file in
$(MAN8
); do \
190 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/$$file; \
192 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/reject.
$(MAN8EXT
)
193 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
194 -$(RMDIR
) $(AMANDIR
)/man
$(MAN8DIR
)
198 # Make html versions of man pages...
201 html
: $(MAN1
) $(MAN5
) $(MAN7
) $(MAN8
) mantohtml
202 echo Converting man pages to HTML...
203 for file in
$(MAN1
); do \
205 .
/mantohtml
`basename $$file .$(MAN1EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN1EXT)`.html
; \
207 for file in
$(MAN5
); do \
209 .
/mantohtml
`basename $$file .$(MAN5EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN5EXT)`.html
; \
211 for file in
$(MAN7
); do \
213 .
/mantohtml
`basename $$file .$(MAN7EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN7EXT)`.html
; \
215 for file in
$(MAN8
); do \
217 .
/mantohtml
`basename $$file .$(MAN8EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN8EXT)`.html
; \
220 mantohtml
: mantohtml.o
221 $(CC
) $(ARCHFLAGS
) $(LDFLAGS
) -o
$@ mantohtml.o
225 # End of "$Id: Makefile 6657 2007-07-13 01:01:14Z mike $".