2
# "$Id: Makefile 9181 2010-06-22 21:42:44Z 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) \
52
MAN8 = cupsaccept.$(MAN8EXT) \
53
cupsaddsmb.$(MAN8EXT) \
55
cupsfilter.$(MAN8EXT) \
56
cups-deviced.$(MAN8EXT) \
57
cups-driverd.$(MAN8EXT) \
59
cups-polld.$(MAN8EXT) \
61
cupsenable.$(MAN8EXT) \
72
all: $(MAN1) $(MAN5) $(MAN7) $(MAN8) html
76
# Make library targets...
90
# Clean all config and object files...
94
$(RM) mantohtml mantohtml.o
95
$(RM) $(MAN1) $(MAN5) $(MAN7) $(MAN8)
96
for file in $(MAN1); do \
97
$(RM) ../doc/help/man-`basename $$file .$(MAN1EXT)`.html; \
99
for file in $(MAN5); do \
100
$(RM) ../doc/help/man-`basename $$file .$(MAN5EXT)`.html; \
102
for file in $(MAN7); do \
103
$(RM) ../doc/help/man-`basename $$file .$(MAN7EXT)`.html; \
105
for file in $(MAN8); do \
106
$(RM) ../doc/help/man-`basename $$file .$(MAN8EXT)`.html; \
111
# Dummy depend target...
118
# Install all targets...
121
install: all install-data install-headers install-libs install-exec
125
# Install data files...
129
$(INSTALL_DIR) -m 755 $(MANDIR)/man1
130
for file in $(MAN1); do \
131
echo Installing $$file in $(MANDIR)/man1...; \
132
$(INSTALL_MAN) $$file $(MANDIR)/man1; \
134
$(INSTALL_DIR) -m 755 $(MANDIR)/man5
135
for file in $(MAN5); do \
136
echo Installing $$file in $(MANDIR)/man5...; \
137
$(INSTALL_MAN) $$file $(MANDIR)/man5; \
139
$(INSTALL_DIR) -m 755 $(MANDIR)/man7
140
for file in $(MAN7); do \
141
echo Installing $$file in $(MANDIR)/man7...; \
142
$(INSTALL_MAN) $$file $(MANDIR)/man7; \
144
$(INSTALL_DIR) -m 755 $(AMANDIR)/man$(MAN8DIR)
145
for file in $(MAN8); do \
146
echo Installing $$file in $(AMANDIR)/man$(MAN8DIR)...; \
147
$(INSTALL_MAN) $$file $(AMANDIR)/man$(MAN8DIR); \
149
for file in accept cupsreject reject; do \
150
$(RM) $(AMANDIR)/man$(MAN8DIR)/$$file.$(MAN8EXT); \
151
$(LN) cupsaccept.$(MAN8EXT) $(AMANDIR)/man$(MAN8DIR)/$$file.$(MAN8EXT); \
153
$(RM) $(AMANDIR)/man$(MAN8DIR)/cupsdisable.$(MAN8EXT)
154
$(LN) cupsenable.$(MAN8EXT) $(AMANDIR)/man$(MAN8DIR)/cupsdisable.$(MAN8EXT)
158
# Install programs...
172
# Install libraries...
183
for file in $(MAN1); do \
184
$(RM) $(MANDIR)/man1/$$file; \
186
-$(RMDIR) $(MANDIR)/man1
187
for file in $(MAN5); do \
188
$(RM) $(MANDIR)/man5/$$file; \
190
-$(RMDIR) $(MANDIR)/man5
191
for file in $(MAN7); do \
192
$(RM) $(MANDIR)/man7/$$file; \
194
-$(RMDIR) $(MANDIR)/man7
195
for file in $(MAN8); do \
196
$(RM) $(AMANDIR)/man$(MAN8DIR)/$$file; \
198
$(RM) $(AMANDIR)/man$(MAN8DIR)/accept.$(MAN8EXT)
199
$(RM) $(AMANDIR)/man$(MAN8DIR)/cupsreject.$(MAN8EXT)
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 9181 2010-06-22 21:42:44Z mike $".