'make man' will generate all man pages now
[samba.git] / docs / docbook / Makefile.in
1 #################################################################
2 # Makefile.in for Samba Documentation
3 # Authors:      James Moore <jmoore@php.net>
4 #               Gerald Carter <jerry@samba.org>
5 #
6 # Please see http://www.samba.org/samba/cvs.html
7 # for information on getting the latest  
8 # source and doucmentation source files.  
9 #
10
11 # Autoconf Variables
12 SRCDIR = @srcdir@
13 JADE = @JADE@
14 NSGMLS = @NSGMLS@
15 ONSGMLS=@ONSGMLS@
16 SGMLSPL=@SGMLSPL@
17 #CATALOG = @CATALOG@
18
19 #Stylesheets and Dependicies
20 SGML_SHARE=/usr/local/share/sgml
21 HTML_STYLESHEET = $(srcdir)/stylesheets/html.dsl
22 HTML_DEPS = $(srcdir)/stylesheets/html-common.dsl $(srcdir)/stylesheets/common.dsl
23
24 MANPAGES=findsmb.1 smbclient.1 \
25         smbspool.8 lmhosts.5 \
26         smbcontrol.1  smbstatus.1 \
27         make_smbcodepage.1  smbd.8 \
28         smbtar.1 nmbd.8 smbmnt.8 \
29         smbumount.8 nmblookup.1 \
30         smbmount.8 swat.8 rpcclient.1    \
31         smbpasswd.5 testparm.1 samba.7 \
32         smbpasswd.8 testprns.1 \
33         smb.conf.5 smbrun.1 wbinfo.1 \
34         smbcacls.1 smbsh.1 winbindd.8 
35
36 ######################################################################
37 # Make instructions
38 ######################################################################
39 all: man
40
41 man: 
42         @echo Building man pages...
43         @for file in `/bin/ls manpages/*sgml`; do \
44            manfile=`basename $$file | sed "s/\.sgml//g"`; \
45            echo "Making $$manfile"; \
46            $(ONSGMLS) -f /tmp/docbook2x.log $$file | $(SGMLSPL) \
47               $(SGML_SHARE)/docbook2X/docbook2man-spec.pl; \
48               cat /tmp/docbook2x.log | grep -v DTDDECL; \
49               /bin/rm -f /tmp/docbook2x.log; \
50            /bin/mv -f $$manfile ../manpages/$$manfile; \
51         done
52 ##
53 ## these rules are for building individual files
54 ##
55 findsmb.1:  manpages/findsmb.1.sgml
56         @echo "Making $@"
57         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
58            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
59         @cat /tmp/docbook2x.log | grep -v DTDDECL
60         @/bin/rm -f /tmp/docbook2x.log
61         
62 smbclient.1: manpages/smbclient.1.sgml
63         @echo "Making $@"
64         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
65            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
66         @cat /tmp/docbook2x.log | grep -v DTDDECL
67         @/bin/rm -f /tmp/docbook2x.log
68
69 smbspool.8: manpages/smbspool.8.sgml
70         @echo "Making $@"
71         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
72            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
73         @cat /tmp/docbook2x.log | grep -v DTDDECL
74         @/bin/rm -f /tmp/docbook2x.log
75
76 lmhosts.5: manpages/lmhosts.5.sgml
77         @echo "Making $@"
78         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
79            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
80         @cat /tmp/docbook2x.log | grep -v DTDDECL
81         @/bin/rm -f /tmp/docbook2x.log
82
83 smbcontrol.1: manpages/smbcontrol.1.sgml
84         @echo "Making $@"
85         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
86            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
87         @cat /tmp/docbook2x.log | grep -v DTDDECL
88         @/bin/rm -f /tmp/docbook2x.log
89
90 smbstatus.1: manpages/smbstatus.1.sgml
91         @echo "Making $@"
92         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
93            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
94         @cat /tmp/docbook2x.log | grep -v DTDDECL
95         @/bin/rm -f /tmp/docbook2x.log
96
97 make_smbcodepage.1: manpages/make_smbcodepage.1.sgml
98         @echo "Making $@"
99         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
100            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
101         @cat /tmp/docbook2x.log | grep -v DTDDECL
102         @/bin/rm -f /tmp/docbook2x.log
103
104 smbd.8: manpages/smbd.8.sgml
105         @echo "Making $@"
106         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
107            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
108         @cat /tmp/docbook2x.log | grep -v DTDDECL
109         @/bin/rm -f /tmp/docbook2x.log
110
111 smbtar.1: manpages/smbtar.1.sgml
112         @echo "Making $@"
113         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
114            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
115         @cat /tmp/docbook2x.log | grep -v DTDDECL
116         @/bin/rm -f /tmp/docbook2x.log
117
118 nmbd.8: manpages/nmbd.8.sgml
119         @echo "Making $@"
120         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
121            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
122         @cat /tmp/docbook2x.log | grep -v DTDDECL
123         @/bin/rm -f /tmp/docbook2x.log
124
125 smbmnt.8: manpages/smbmnt.8.sgml
126         @echo "Making $@"
127         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
128            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
129         @cat /tmp/docbook2x.log | grep -v DTDDECL
130         @/bin/rm -f /tmp/docbook2x.log
131
132 smbumount.8: manpages/smbumount.8.sgml
133         @echo "Making $@"
134         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
135            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
136         @cat /tmp/docbook2x.log | grep -v DTDDECL
137         @/bin/rm -f /tmp/docbook2x.log
138
139 nmblookup.1: manpages/nmblookup.1.sgml
140         @echo "Making $@"
141         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
142            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
143         @cat /tmp/docbook2x.log | grep -v DTDDECL
144         @/bin/rm -f /tmp/docbook2x.log
145
146 smbmount.8: manpages/smbmount.8.sgml
147         @echo "Making $@"
148         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
149            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
150         @cat /tmp/docbook2x.log | grep -v DTDDECL
151         @/bin/rm -f /tmp/docbook2x.log
152
153 swat.8: manpages/swat.8.sgml
154         @echo "Making $@"
155         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
156            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
157         @cat /tmp/docbook2x.log | grep -v DTDDECL
158         @/bin/rm -f /tmp/docbook2x.log
159
160 rpcclient.1: manpages/rpcclient.1.sgml
161         @echo "Making $@"
162         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
163            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
164         @cat /tmp/docbook2x.log | grep -v DTDDECL
165         @/bin/rm -f /tmp/docbook2x.log
166
167 smbpasswd.5: manpages/smbpasswd.5.sgml
168         @echo "Making $@"
169         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
170            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
171         @cat /tmp/docbook2x.log | grep -v DTDDECL
172         @/bin/rm -f /tmp/docbook2x.log
173
174 testparm.1: manpages/testparm.1.sgml
175         @echo "Making $@"
176         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
177            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
178         @cat /tmp/docbook2x.log | grep -v DTDDECL
179         @/bin/rm -f /tmp/docbook2x.log
180
181 samba.7: manpages/samba.7.sgml
182         @echo "Making $@"
183         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
184            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
185         @cat /tmp/docbook2x.log | grep -v DTDDECL
186         @/bin/rm -f /tmp/docbook2x.log
187
188 smbpasswd.8: manpages/smbpasswd.8.sgml
189         @echo "Making $@"
190         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
191            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
192         @cat /tmp/docbook2x.log | grep -v DTDDECL
193         @/bin/rm -f /tmp/docbook2x.log
194
195 testprns.1: manpages/testprns.1.sgml
196         @echo "Making $@"
197         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
198            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
199         @cat /tmp/docbook2x.log | grep -v DTDDECL
200         @/bin/rm -f /tmp/docbook2x.log
201
202 smb.conf.5: manpages/smb.conf.5.sgml
203         @echo "Making $@"
204         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
205            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
206         @cat /tmp/docbook2x.log | grep -v DTDDECL
207         @/bin/rm -f /tmp/docbook2x.log
208
209 smbrun.1: manpages/smbrun.1.sgml
210         @echo "Making $@"
211         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
212            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
213         @cat /tmp/docbook2x.log | grep -v DTDDECL
214         @/bin/rm -f /tmp/docbook2x.log
215
216 wbinfo.1: manpages/wbinfo.1.sgml
217         @echo "Making $@"
218         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
219            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
220         @cat /tmp/docbook2x.log | grep -v DTDDECL
221         @/bin/rm -f /tmp/docbook2x.log
222
223 smbcacls.1: manpages/smbcacls.1.sgml
224         @echo "Making $@"
225         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
226            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
227         @cat /tmp/docbook2x.log | grep -v DTDDECL
228         @/bin/rm -f /tmp/docbook2x.log
229
230 smbsh.1 : manpages/smbsh.1.sgml
231         @echo "Making $@"
232         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
233            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
234         @cat /tmp/docbook2x.log | grep -v DTDDECL
235         @/bin/rm -f /tmp/docbook2x.log
236
237 winbindd.8: manpages/winbindd.8.sgml
238         @echo "Making $@"
239         @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
240            $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
241         @cat /tmp/docbook2x.log | grep -v DTDDECL
242         @/bin/rm -f /tmp/docbook2x.log
243
244
245
246
247 ## Clean Rule
248 clean: 
249         /bin/rm -f manpage.*