blob: efd9ca3bbb9367e015b2db5669f02a19b61fcdf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
|
#
# Man page makefile for CUPS.
#
# Copyright © 2007-2019 by Apple Inc.
# Copyright © 1993-2006 by Easy Software Products.
#
# Licensed under Apache License v2.0. See the file "LICENSE" for more
# information.
#
include ../Makedefs
#
# Man pages...
#
MAN1 = cancel.1 \
cups.1 \
cups-config.1 \
cupstestppd.1 \
ippeveprinter.1 \
$(IPPFIND_MAN) \
ipptool.1 \
lp.1 \
lpoptions.1 \
lpq.1 \
lprm.1 \
lpr.1 \
lpstat.1 \
ppdc.1 \
ppdhtml.1 \
ppdi.1 \
ppdmerge.1 \
ppdpo.1
MAN5 = classes.conf.5 \
client.conf.5 \
cups-files.conf.5 \
cups-snmp.conf.5 \
cupsd.conf.5 \
cupsd-logs.5 \
ipptoolfile.5 \
mailto.conf.5 \
mime.convs.5 \
mime.types.5 \
ppdcfile.5 \
printers.conf.5 \
subscriptions.conf.5
MAN7 = backend.7 \
filter.7 \
ippevepcl.7 \
notifier.7
MAN8 = cupsaccept.8 \
cupsctl.8 \
cupsfilter.8 \
cups-lpd.8 \
cups-snmp.8 \
cupsd.8 \
cupsd-helper.8 \
cupsenable.8 \
lpadmin.8 \
lpinfo.8 \
lpmove.8 \
lpc.8
#
# Make everything...
#
all: $(MAN1) $(MAN5) $(MAN7) $(MAN8)
#
# Make library targets...
#
libs:
#
# Make unit tests...
#
unittests:
#
# Clean all config and object files...
#
clean:
$(RM) mantohtml mantohtml.o
#
# Dummy depend target...
#
depend:
#
# Install all targets...
#
install: all install-data install-headers install-libs install-exec
#
# Install data files...
#
install-data: all
echo Installing man pages in $(MANDIR)/man1...
$(INSTALL_DIR) -m 755 $(MANDIR)/man1
for file in $(MAN1); do \
$(INSTALL_MAN) $$file $(MANDIR)/man1; \
done
echo Installing man pages in $(MANDIR)/man5...
$(INSTALL_DIR) -m 755 $(MANDIR)/man5
for file in $(MAN5); do \
$(INSTALL_MAN) $$file $(MANDIR)/man5; \
done
echo Installing man pages in $(MANDIR)/man7...
$(INSTALL_DIR) -m 755 $(MANDIR)/man7
for file in $(MAN7); do \
$(INSTALL_MAN) $$file $(MANDIR)/man7; \
done
$(RM) $(MANDIR)/man7/ippeveps.7
$(LN) ippevepcl.7 $(MANDIR)/man7/ippeveps.7
echo Installing man pages in $(MANDIR)/man8...
$(INSTALL_DIR) -m 755 $(MANDIR)/man8
for file in $(MAN8); do \
$(INSTALL_MAN) $$file $(MANDIR)/man8; \
done
$(RM) $(MANDIR)/man8/cupsdisable.8
$(LN) cupsenable.8 $(MANDIR)/man8/cupsdisable.8
$(RM) $(MANDIR)/man8/cupsreject.8
$(LN) cupsaccept.8 $(MANDIR)/man8/cupsreject.8
for file in cups-deviced.8 cups-driverd.8 cups-exec.8; do \
$(RM) $(MANDIR)/man8/$$file; \
$(LN) cupsd-helper.8 $(MANDIR)/man8/$$file; \
done
#
# Install programs...
#
install-exec:
#
# Install headers...
#
install-headers:
#
# Install libraries...
#
install-libs:
#
# Uninstall files...
#
uninstall:
echo Uninstalling man pages from $(MANDIR)/man1...
for file in $(MAN1); do \
$(RM) $(MANDIR)/man1/$$file; \
done
-$(RMDIR) $(MANDIR)/man1
echo Uninstalling man pages from $(MANDIR)/man5...
for file in $(MAN5); do \
$(RM) $(MANDIR)/man5/$$file; \
done
-$(RMDIR) $(MANDIR)/man5
echo Uninstalling man pages from $(MANDIR)/man7...
for file in $(MAN7) ippeveps.7; do \
$(RM) $(MANDIR)/man7/$$file; \
done
-$(RMDIR) $(MANDIR)/man7
echo Uninstalling man pages from $(MANDIR)/man8...
for file in $(MAN8) cupsenable.8 cupsreject.8 cups-deviced.8 cups-driverd.8 cups-exec.8; do \
$(RM) $(MANDIR)/man8/$$file; \
done
-$(RMDIR) $(MANDIR)/man8
#
# Local programs (not built when cross-compiling...)
#
local: html
#
# Make html versions of man pages...
#
html: $(MAN1) $(MAN5) $(MAN7) $(MAN8) mantohtml
echo Converting man pages to HTML...
for file in $(MAN1); do \
echo " $$file..."; \
./mantohtml $$file >../doc/help/man-`basename $$file .1`.html; \
done
for file in $(MAN5); do \
echo " $$file..."; \
./mantohtml $$file >../doc/help/man-`basename $$file .5`.html; \
done
for file in $(MAN7); do \
echo " $$file..."; \
./mantohtml $$file >../doc/help/man-`basename $$file .7`.html; \
done
for file in $(MAN8); do \
echo " $$file..."; \
./mantohtml $$file >../doc/help/man-`basename $$file .8`.html; \
done
mantohtml: mantohtml.o ../cups/$(LIBCUPSSTATIC)
$(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ mantohtml.o \
../cups/$(LIBCUPSSTATIC) $(LIBGSSAPI) $(SSLLIBS) \
$(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
$(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
|