]> git.ipfire.org Git - thirdparty/cups.git/blob - man/Makefile
Add missing DNSSD.LIB functions.
[thirdparty/cups.git] / man / Makefile
1 #
2 # Man page makefile for CUPS.
3 #
4 # Copyright 2007-2018 by Apple Inc.
5 # Copyright 1993-2006 by Easy Software Products.
6 #
7 # Licensed under Apache License v2.0. See the file "LICENSE" for more information.
8 #
9
10 include ../Makedefs
11
12
13 #
14 # Man pages...
15 #
16
17 MAN1 = cancel.$(MAN1EXT) \
18 cups.$(MAN1EXT) \
19 cups-config.$(MAN1EXT) \
20 cupstestdsc.$(MAN1EXT) \
21 cupstestppd.$(MAN1EXT) \
22 $(IPPFIND_MAN) \
23 ipptool.$(MAN1EXT) \
24 lp.$(MAN1EXT) \
25 lpoptions.$(MAN1EXT) \
26 lpq.$(MAN1EXT) \
27 lprm.$(MAN1EXT) \
28 lpr.$(MAN1EXT) \
29 lpstat.$(MAN1EXT) \
30 ppdc.$(MAN1EXT) \
31 ppdhtml.$(MAN1EXT) \
32 ppdi.$(MAN1EXT) \
33 ppdmerge.$(MAN1EXT) \
34 ppdpo.$(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) \
45 ppdcfile.$(MAN5EXT) \
46 printers.conf.$(MAN5EXT) \
47 subscriptions.conf.$(MAN5EXT)
48 MAN7 = backend.$(MAN7EXT) \
49 filter.$(MAN7EXT) \
50 notifier.$(MAN7EXT)
51 MAN8 = cupsaccept.$(MAN8EXT) \
52 cupsaddsmb.$(MAN8EXT) \
53 cupsctl.$(MAN8EXT) \
54 cupsfilter.$(MAN8EXT) \
55 cups-lpd.$(MAN8EXT) \
56 cups-snmp.$(MAN8EXT) \
57 cupsd.$(MAN8EXT) \
58 cupsd-helper.$(MAN8EXT) \
59 cupsenable.$(MAN8EXT) \
60 lpadmin.$(MAN8EXT) \
61 lpinfo.$(MAN8EXT) \
62 lpmove.$(MAN8EXT) \
63 lpc.$(MAN8EXT)
64
65
66 #
67 # Make everything...
68 #
69
70 all: $(MAN1) $(MAN5) $(MAN7) $(MAN8)
71
72
73 #
74 # Make library targets...
75 #
76
77 libs:
78
79
80 #
81 # Make unit tests...
82 #
83
84 unittests:
85
86
87 #
88 # Clean all config and object files...
89 #
90
91 clean:
92 $(RM) mantohtml mantohtml.o
93 $(RM) $(MAN1) $(MAN5) $(MAN7) $(MAN8)
94
95
96 #
97 # Dummy depend target...
98 #
99
100 depend:
101
102
103 #
104 # Install all targets...
105 #
106
107 install: all install-data install-headers install-libs install-exec
108
109
110 #
111 # Install data files...
112 #
113
114 install-data: all
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; \
119 done
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; \
124 done
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; \
129 done
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); \
134 done
135 for file in accept cupsreject reject; do \
136 $(RM) $(AMANDIR)/man$(MAN8DIR)/$$file.$(MAN8EXT); \
137 $(LN) cupsaccept.$(MAN8EXT) $(AMANDIR)/man$(MAN8DIR)/$$file.$(MAN8EXT); \
138 done
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); \
144 done
145
146
147 #
148 # Install programs...
149 #
150
151 install-exec:
152
153
154 #
155 # Install headers...
156 #
157
158 install-headers:
159
160
161 #
162 # Install libraries...
163 #
164
165 install-libs:
166
167
168 #
169 # Uninstall files...
170 #
171
172 uninstall:
173 for file in $(MAN1); do \
174 $(RM) $(MANDIR)/man1/$$file; \
175 done
176 -$(RMDIR) $(MANDIR)/man1
177 for file in $(MAN5); do \
178 $(RM) $(MANDIR)/man5/$$file; \
179 done
180 -$(RMDIR) $(MANDIR)/man5
181 for file in $(MAN7); do \
182 $(RM) $(MANDIR)/man7/$$file; \
183 done
184 -$(RMDIR) $(MANDIR)/man7
185 for file in $(MAN8); do \
186 $(RM) $(AMANDIR)/man$(MAN8DIR)/$$file; \
187 done
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)
193
194
195 #
196 # Local programs (not built when cross-compiling...)
197 #
198
199 local: html
200
201
202 #
203 # Make html versions of man pages...
204 #
205
206 html: $(MAN1) $(MAN5) $(MAN7) $(MAN8) mantohtml
207 echo Converting man pages to HTML...
208 for file in $(MAN1); do \
209 echo " $$file..."; \
210 ./mantohtml `basename $$file .$(MAN1EXT)`.man >../doc/help/man-`basename $$file .$(MAN1EXT)`.html; \
211 done
212 for file in $(MAN5); do \
213 echo " $$file..."; \
214 ./mantohtml `basename $$file .$(MAN5EXT)`.man >../doc/help/man-`basename $$file .$(MAN5EXT)`.html; \
215 done
216 for file in $(MAN7); do \
217 echo " $$file..."; \
218 ./mantohtml `basename $$file .$(MAN7EXT)`.man >../doc/help/man-`basename $$file .$(MAN7EXT)`.html; \
219 done
220 for file in $(MAN8); do \
221 echo " $$file..."; \
222 ./mantohtml `basename $$file .$(MAN8EXT)`.man >../doc/help/man-`basename $$file .$(MAN8EXT)`.html; \
223 done
224
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)" $@