1 #################################################################
2 # Makefile.in for Samba Documentation
3 # Authors: James Moore <jmoore@php.net>
4 # Gerald Carter <jerry@samba.org>
5 # Jelmer Vernooij <jelmer@samba.org>
7 # Please see http://www.samba.org/samba/cvs.html
8 # for information on getting the latest
9 # source and documentation source files.
14 MANPAGES_NAMES=findsmb.1 smbclient.1 \
15 smbspool.8 lmhosts.5 \
16 smbcontrol.1 smbstatus.1 \
17 smbd.8 net.8 smbtar.1 nmbd.8 \
18 smbmnt.8 smbumount.8 nmblookup.1 \
19 smbmount.8 swat.8 rpcclient.1 \
20 smbpasswd.5 testparm.1 samba.7 \
21 smbpasswd.8 testprns.1 \
22 smb.conf.5 wbinfo.1 pdbedit.8 \
23 smbcacls.1 smbsh.1 winbindd.8 \
24 smbgroupedit.8 vfstest.1 \
25 profiles.1 smbtree.1 ntlm_auth.1 \
26 editreg.1 smbcquotas.1
28 ## This part contains only rules. You shouldn't need to change it
29 ## if you are adding docs
31 DOCBOOK2MAN = @JW@ -b man
32 DOCBOOK2HTML = @JW@ -b html
33 DOCBOOK2PDF = @JW@ -b pdf
34 DOCBOOK2PS = @JW@ -b ps
35 DOCBOOK2TXT = @JW@ -b txt
36 DOCBOOK2INFO = @JW@ -b texi
41 MANPROJDOC = manpages/
51 MANPAGES=$(patsubst %,$(MANDIR)/%,$(MANPAGES_NAMES))
52 MANPAGES_HTML=$(patsubst %,$(HTMLDIR)/%.html,$(MANPAGES_NAMES))
55 @echo "Supported make targets:"
56 @echo "manpages - Build manpages"
57 @echo "ps - Build PostScript version of HOWTO Collection"
58 @echo "pdf - Build PDF version of HOWTO Collection"
59 @echo -n "html-single - Build single file HTML version of HOWTO Collection"
60 @echo " and developers guide"
61 @echo "html - Build HTML version of HOWTO Collection"
62 @echo "htmlman - Build html version of manpages"
63 @echo "txt - Build plain text version of HOWTO Collection"
64 @echo "htmlfaq - Build html version of the FAQ"
65 @echo "everything - Build all of the above"
67 everything: manpages ps pdf html-single html htmlman txt htmlfaq
72 pdf: $(PDFDIR)/Samba-HOWTO-Collection.pdf ../Samba-Developers-Guide.pdf
73 ps: $(PSDIR)/Samba-HOWTO-Collection.ps ../Samba-Developers-Guide.ps
74 txt: $(TXTDIR)/Samba-HOWTO-Collection.txt $(TXTDIR)/Samba-Developers-Guide.txt
75 htmlman: $(MANPAGES_HTML)
77 $(DOCBOOK2HTML) -d samba.dsl -o $(FAQDIR) $(FAQPROJDOC)/sambafaq.sgml
78 html-single: $(HTMLDIR)/Samba-HOWTO-Collection.html $(HTMLDIR)/Samba-Developers-Guide.html
80 $(DOCBOOK2HTML) -d samba.dsl -o $(HTMLDIR) $(PROJDOC)/samba-doc.sgml
84 $(TXTDIR)/Samba-HOWTO-Collection.txt: $(PROJDOC)/samba-doc.sgml
85 $(DOCBOOK2TXT) -o . $<
88 $(TXTDIR)/Samba-Developers-Guide.txt: $(DEVDOC)/dev-doc.sgml
89 $(DOCBOOK2TXT) -o . $<
94 $(PSDIR)/Samba-HOWTO-Collection.ps: $(PROJDOC)/samba-doc.sgml
98 $(PSDIR)/Samba-Developers-Guide.ps: $(DEVDOC)/dev-doc.sgml
104 $(PDFDIR)/Samba-HOWTO-Collection.pdf: $(HTMLDIR)/Samba-HOWTO-Collection.html
105 $(HTMLDOC) --book --color --links -f $@ $<
107 $(PDFDIR)/Samba-Developers-Guide.pdf: $(HTMLDIR)/Samba-Developers-Guide.html
108 $(HTMLDOC) --book --color --links -f $@ $<
110 # Single large HTML files
112 $(HTMLDIR)/Samba-HOWTO-Collection.html: $(PROJDOC)/samba-doc.sgml
113 $(DOCBOOK2HTML) -u -o . $<
114 mv ./samba-doc.html $@
116 $(HTMLDIR)/Samba-Developers-Guide.html: $(DEVDOC)/dev-doc.sgml
117 $(DOCBOOK2HTML) -u -o . $<
121 $(HTMLDIR)/%.html: $(MANPROJDOC)/%.sgml
122 $(DOCBOOK2HTML) -u -o $(HTMLDIR) $<
124 $(MANDIR)/%: $(MANPROJDOC)/%.sgml
125 $(DOCBOOK2MAN) -o $(MANDIR) $<
126 $(PERL) scripts/strip-links.pl < $@ > $@.temp
130 rm -f $(MANPAGES) $(MANPAGES_HTML) $(HTMLDIR)/*.html $(TXTDIR)/*.txt $(PSDIR)/*.ps $(PDFDIR)/*.pdf