]> git.ipfire.org Git - thirdparty/cups.git/blob - man/Makefile
5c626c8b6df0db760a478ca4ba96f1d6992f653b
[thirdparty/cups.git] / man / Makefile
1 #
2 # "$Id: Makefile 7930 2008-09-10 22:25:54Z mike $"
3 #
4 # Man page makefile for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 2007-2008 by Apple Inc.
7 # Copyright 1993-2006 by Easy Software Products.
8 #
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/".
14 #
15
16 include ../Makedefs
17
18
19 #
20 # Man pages...
21 #
22
23 MAN1 = cancel.$(MAN1EXT) \
24 cups-config.$(MAN1EXT) \
25 cupstestdsc.$(MAN1EXT) \
26 cupstestppd.$(MAN1EXT) \
27 lp.$(MAN1EXT) \
28 lpoptions.$(MAN1EXT) \
29 lppasswd.$(MAN1EXT) \
30 lpq.$(MAN1EXT) \
31 lprm.$(MAN1EXT) \
32 lpr.$(MAN1EXT) \
33 lpstat.$(MAN1EXT) \
34 ppdc.$(MAN1EXT) \
35 ppdhtml.$(MAN1EXT) \
36 ppdi.$(MAN1EXT) \
37 ppdmerge.$(MAN1EXT) \
38 ppdpo.$(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) \
46 ppdcfile.$(MAN5EXT) \
47 printers.conf.$(MAN5EXT) \
48 subscriptions.conf.$(MAN5EXT)
49 MAN7 = backend.$(MAN7EXT) \
50 commandtoescpx.$(MAN7EXT) \
51 commandtopclx.$(MAN7EXT) \
52 drv.$(MAN7EXT) \
53 filter.$(MAN7EXT) \
54 rastertoescpx.$(MAN7EXT) \
55 rastertopclx.$(MAN7EXT)
56 MAN8 = cupsaccept.$(MAN8EXT) \
57 cupsaddsmb.$(MAN8EXT) \
58 cupsctl.$(MAN8EXT) \
59 cupsfilter.$(MAN8EXT) \
60 cups-deviced.$(MAN8EXT) \
61 cups-driverd.$(MAN8EXT) \
62 cups-lpd.$(MAN8EXT) \
63 cups-polld.$(MAN8EXT) \
64 cupsd.$(MAN8EXT) \
65 cupsenable.$(MAN8EXT) \
66 lpadmin.$(MAN8EXT) \
67 lpinfo.$(MAN8EXT) \
68 lpmove.$(MAN8EXT) \
69 lpc.$(MAN8EXT)
70
71
72 #
73 # Make everything...
74 #
75
76 all: $(MAN1) $(MAN5) $(MAN7) $(MAN8) html
77
78
79 #
80 # Make library targets...
81 #
82
83 libs:
84
85
86 #
87 # Make unit tests...
88 #
89
90 unittests:
91
92
93 #
94 # Clean all config and object files...
95 #
96
97 clean:
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; \
102 done
103 for file in $(MAN5); do \
104 $(RM) ../doc/help/man-`basename $$file .$(MAN5EXT)`.html; \
105 done
106 for file in $(MAN7); do \
107 $(RM) ../doc/help/man-`basename $$file .$(MAN7EXT)`.html; \
108 done
109 for file in $(MAN8); do \
110 $(RM) ../doc/help/man-`basename $$file .$(MAN8EXT)`.html; \
111 done
112
113
114 #
115 # Dummy depend target...
116 #
117
118 depend:
119
120
121 #
122 # Install all targets...
123 #
124
125 install: all install-data install-headers install-libs install-exec
126
127
128 #
129 # Install data files...
130 #
131
132 install-data: all
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; \
137 done
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; \
142 done
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; \
147 done
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); \
152 done
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)
157
158
159 #
160 # Install programs...
161 #
162
163 install-exec:
164
165
166 #
167 # Install headers...
168 #
169
170 install-headers:
171
172
173 #
174 # Install libraries...
175 #
176
177 install-libs:
178
179
180 #
181 # Uninstall files...
182 #
183
184 uninstall:
185 for file in $(MAN1); do \
186 $(RM) $(MANDIR)/man1/$$file; \
187 done
188 -$(RMDIR) $(MANDIR)/man1
189 for file in $(MAN5); do \
190 $(RM) $(MANDIR)/man5/$$file; \
191 done
192 -$(RMDIR) $(MANDIR)/man5
193 for file in $(MAN7); do \
194 $(RM) $(MANDIR)/man7/$$file; \
195 done
196 -$(RMDIR) $(MANDIR)/man7
197 for file in $(MAN8); do \
198 $(RM) $(AMANDIR)/man$(MAN8DIR)/$$file; \
199 done
200 $(RM) $(AMANDIR)/man$(MAN8DIR)/reject.$(MAN8EXT)
201 $(RM) $(AMANDIR)/man$(MAN8DIR)/cupsdisable.$(MAN8EXT)
202 -$(RMDIR) $(AMANDIR)/man$(MAN8DIR)
203
204
205 #
206 # Make html versions of man pages...
207 #
208
209 html: $(MAN1) $(MAN5) $(MAN7) $(MAN8) mantohtml
210 echo Converting man pages to HTML...
211 for file in $(MAN1); do \
212 echo " $$file..."; \
213 ./mantohtml `basename $$file .$(MAN1EXT)`.man >../doc/help/man-`basename $$file .$(MAN1EXT)`.html; \
214 done
215 for file in $(MAN5); do \
216 echo " $$file..."; \
217 ./mantohtml `basename $$file .$(MAN5EXT)`.man >../doc/help/man-`basename $$file .$(MAN5EXT)`.html; \
218 done
219 for file in $(MAN7); do \
220 echo " $$file..."; \
221 ./mantohtml `basename $$file .$(MAN7EXT)`.man >../doc/help/man-`basename $$file .$(MAN7EXT)`.html; \
222 done
223 for file in $(MAN8); do \
224 echo " $$file..."; \
225 ./mantohtml `basename $$file .$(MAN8EXT)`.man >../doc/help/man-`basename $$file .$(MAN8EXT)`.html; \
226 done
227
228 mantohtml: mantohtml.o
229 $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ mantohtml.o
230
231
232 #
233 # End of "$Id: Makefile 7930 2008-09-10 22:25:54Z mike $".
234 #