2 # Man page makefile for CUPS.
4 # Copyright 2007-2018 by Apple Inc.
5 # Copyright 1993-2006 by Easy Software Products.
7 # Licensed under Apache License v2.0. See the file "LICENSE" for more information.
17 MAN1
= cancel.
$(MAN1EXT
) \
19 cups-config.
$(MAN1EXT
) \
20 cupstestdsc.
$(MAN1EXT
) \
21 cupstestppd.
$(MAN1EXT
) \
25 lpoptions.
$(MAN1EXT
) \
35 MAN5
= classes.conf.
$(MAN5EXT
) \
36 client.conf.
$(MAN5EXT
) \
37 cups-files.conf.
$(MAN5EXT
) \
38 cups-snmp.conf.
$(MAN5EXT
) \
39 cupsd.conf.
$(MAN5EXT
) \
40 cupsd-logs.
$(MAN5EXT
) \
41 ipptoolfile.
$(MAN5EXT
) \
42 mailto.conf.
$(MAN5EXT
) \
43 mime.convs.
$(MAN5EXT
) \
44 mime.types.
$(MAN5EXT
) \
46 printers.conf.
$(MAN5EXT
) \
47 subscriptions.conf.
$(MAN5EXT
)
48 MAN7
= backend.
$(MAN7EXT
) \
51 MAN8
= cupsaccept.
$(MAN8EXT
) \
52 cupsaddsmb.
$(MAN8EXT
) \
54 cupsfilter.
$(MAN8EXT
) \
56 cups-snmp.
$(MAN8EXT
) \
58 cupsd-helper.
$(MAN8EXT
) \
59 cupsenable.
$(MAN8EXT
) \
70 all: $(MAN1
) $(MAN5
) $(MAN7
) $(MAN8
)
74 # Make library targets...
88 # Clean all config and object files...
92 $(RM
) mantohtml mantohtml.o
93 $(RM
) $(MAN1
) $(MAN5
) $(MAN7
) $(MAN8
)
97 # Dummy depend target...
104 # Install all targets...
107 install: all install-data install-headers install-libs install-exec
111 # Install data files...
115 $(INSTALL_DIR
) -m
755 $(MANDIR
)/man1
116 for file in
$(MAN1
); do \
117 echo Installing
$$file in
$(MANDIR
)/man1...
; \
118 $(INSTALL_MAN
) $$file $(MANDIR
)/man1
; \
120 $(INSTALL_DIR
) -m
755 $(MANDIR
)/man5
121 for file in
$(MAN5
); do \
122 echo Installing
$$file in
$(MANDIR
)/man5...
; \
123 $(INSTALL_MAN
) $$file $(MANDIR
)/man5
; \
125 $(INSTALL_DIR
) -m
755 $(MANDIR
)/man7
126 for file in
$(MAN7
); do \
127 echo Installing
$$file in
$(MANDIR
)/man7...
; \
128 $(INSTALL_MAN
) $$file $(MANDIR
)/man7
; \
130 $(INSTALL_DIR
) -m
755 $(AMANDIR
)/man
$(MAN8DIR
)
131 for file in
$(MAN8
); do \
132 echo Installing
$$file in
$(AMANDIR
)/man
$(MAN8DIR
)...
; \
133 $(INSTALL_MAN
) $$file $(AMANDIR
)/man
$(MAN8DIR
); \
135 for file in accept cupsreject reject
; do \
136 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/$$file.
$(MAN8EXT
); \
137 $(LN
) cupsaccept.
$(MAN8EXT
) $(AMANDIR
)/man
$(MAN8DIR
)/$$file.
$(MAN8EXT
); \
139 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
140 $(LN
) cupsenable.
$(MAN8EXT
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
141 for file in cups-deviced cups-driverd cups-exec
; do \
142 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/$$file.
$(MAN8EXT
); \
143 $(LN
) cupsd-helper.
$(MAN8EXT
) $(AMANDIR
)/man
$(MAN8DIR
)/$$file.
$(MAN8EXT
); \
148 # Install programs...
162 # Install libraries...
173 for file in
$(MAN1
); do \
174 $(RM
) $(MANDIR
)/man1
/$$file; \
176 -$(RMDIR
) $(MANDIR
)/man1
177 for file in
$(MAN5
); do \
178 $(RM
) $(MANDIR
)/man5
/$$file; \
180 -$(RMDIR
) $(MANDIR
)/man5
181 for file in
$(MAN7
); do \
182 $(RM
) $(MANDIR
)/man7
/$$file; \
184 -$(RMDIR
) $(MANDIR
)/man7
185 for file in
$(MAN8
); do \
186 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/$$file; \
188 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/accept.
$(MAN8EXT
)
189 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsreject.
$(MAN8EXT
)
190 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/reject.
$(MAN8EXT
)
191 $(RM
) $(AMANDIR
)/man
$(MAN8DIR
)/cupsdisable.
$(MAN8EXT
)
192 -$(RMDIR
) $(AMANDIR
)/man
$(MAN8DIR
)
196 # Local programs (not built when cross-compiling...)
203 # Make html versions of man pages...
206 html
: $(MAN1
) $(MAN5
) $(MAN7
) $(MAN8
) mantohtml
207 echo Converting man pages to HTML...
208 for file in
$(MAN1
); do \
210 .
/mantohtml
`basename $$file .$(MAN1EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN1EXT)`.html
; \
212 for file in
$(MAN5
); do \
214 .
/mantohtml
`basename $$file .$(MAN5EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN5EXT)`.html
; \
216 for file in
$(MAN7
); do \
218 .
/mantohtml
`basename $$file .$(MAN7EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN7EXT)`.html
; \
220 for file in
$(MAN8
); do \
222 .
/mantohtml
`basename $$file .$(MAN8EXT)`.man
>..
/doc
/help
/man-
`basename $$file .$(MAN8EXT)`.html
; \
225 mantohtml
: mantohtml.o ..
/cups
/$(LIBCUPSSTATIC
)
226 $(LD_CC
) $(ARCHFLAGS
) $(LDFLAGS
) -o
$@ mantohtml.o \
227 ..
/cups
/$(LIBCUPSSTATIC
) $(LIBGSSAPI
) $(SSLLIBS
) \
228 $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)
229 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@