2 # "$Id: Makefile 7930 2008-09-10 22:25:54Z 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
= cupsaccept.
$(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...
94 # Clean all config and object files...
98 $(RM
) mantohtml mantohtml.o
99 $(RM
) $(MAN1
) $(MAN5
) $(MAN7
) $(MAN8
)
100 for file in
$(MAN1
); do \
101 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN1EXT)`.html
; \
103 for file in
$(MAN5
); do \
104 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN5EXT)`.html
; \
106 for file in
$(MAN7
); do \
107 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN7EXT)`.html
; \
109 for file in
$(MAN8
); do \
110 $(RM
) ..
/doc
/help
/man-
`basename $$file .$(MAN8EXT)`.html
; \
115 # Dummy depend target...
122 # Install all targets...
125 install: all install-data install-headers install-libs install-exec
129 # Install data files...
133 $(INSTALL_DIR
) -m
755 $(MANDIR
)/man1
134 for file in
$(MAN1
); do \
135 echo Installing
$$file in
$(MANDIR
)/man1...
; \
136 $(INSTALL_MAN
) $$file $(MANDIR
)/man1
; \
138 $(INSTALL_DIR
) -m
755 $(MANDIR
)/man5
139 for file in
$(MAN5
); do \
140 echo Installing
$$file in
$(MANDIR
)/man5...
; \
141 $(INSTALL_MAN
) $$file $(MANDIR
)/man5
; \
143 $(INSTALL_DIR
) -m
755 $(MANDIR
)/man7
144 for file in
$(MAN7
); do \
145 echo Installing
$$file in
$(MANDIR
)/man7...
; \
146 $(INSTALL_MAN
) $$file $(MANDIR
)/man7
; \
148 $(INSTALL_DIR
) -m
755 $(AMANDIR
)/man
$(MAN8DIR
)
149 for file in
$(MAN8
); do \
150 echo Installing
$$file in
$(AMANDIR
)/man
$(MAN8DIR
)...
; \
151 $(INSTALL_MAN
) $$file $(AMANDIR
)/man
$(MAN8DIR
); \
153 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsreject.
$(MAN8EXT
)
154 $(LN
) cupsaccept.
$(MAN8EXT
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsreject.
$(MAN8EXT
)
155 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
156 $(LN
) cupsenable.
$(MAN8EXT
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
160 # Install programs...
174 # Install libraries...
185 for file in
$(MAN1
); do \
186 $(RM
) $(MANDIR
)/man1
/$$file; \
188 -$(RMDIR
) $(MANDIR
)/man1
189 for file in
$(MAN5
); do \
190 $(RM
) $(MANDIR
)/man5
/$$file; \
192 -$(RMDIR
) $(MANDIR
)/man5
193 for file in
$(MAN7
); do \
194 $(RM
) $(MANDIR
)/man7
/$$file; \
196 -$(RMDIR
) $(MANDIR
)/man7
197 for file in
$(MAN8
); do \
198 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/$$file; \
200 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/reject.
$(MAN8EXT
)
201 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
202 -$(RMDIR
) $(AMANDIR
)/man
$(MAN8DIR
)
206 # Make html versions of man pages...
209 html
: $(MAN1
) $(MAN5
) $(MAN7
) $(MAN8
) mantohtml
210 echo Converting man pages to HTML...
211 for file in
$(MAN1
); do \
213 .
/mantohtml
`basename $$file .$(MAN1EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN1EXT)`.html
; \
215 for file in
$(MAN5
); do \
217 .
/mantohtml
`basename $$file .$(MAN5EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN5EXT)`.html
; \
219 for file in
$(MAN7
); do \
221 .
/mantohtml
`basename $$file .$(MAN7EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN7EXT)`.html
; \
223 for file in
$(MAN8
); do \
225 .
/mantohtml
`basename $$file .$(MAN8EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN8EXT)`.html
; \
228 mantohtml
: mantohtml.o
229 $(CC
) $(ARCHFLAGS
) $(LDFLAGS
) -o
$@ mantohtml.o
233 # End of "$Id: Makefile 7930 2008-09-10 22:25:54Z mike $".