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 make_smbcodepage.1 smbd.8 \
18 smbtar.1 nmbd.8 smbmnt.8 \
19 smbumount.8 nmblookup.1 \
20 smbmount.8 swat.8 rpcclient.1 \
21 smbpasswd.5 testparm.1 samba.7 \
22 smbpasswd.8 testprns.1 \
23 smb.conf.5 wbinfo.1 pdbedit.8 \
24 smbcacls.1 smbsh.1 winbindd.8 \
25 make_unicodemap.1 net.8 \
26 smbgroupedit.8 vfstest.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 MANSGMLDIR = manpages/
45 MANPAGES=$(patsubst %,$(MANDIR)/%,$(MANPAGES_NAMES))
46 MANPAGES_HTML=$(patsubst %,$(HTMLDIR)/%.html,$(MANPAGES_NAMES))
49 @echo "Supported make targets:"
50 @echo "manpages - Build manpages"
51 @echo "ps - Build PostScript version of HOWTO Collection"
52 @echo "pdf - Build PDF version of HOWTO Collection"
53 @echo -n "html-single - Build single file HTML version of HOWTO Collection"
54 @echo " and developers guide"
55 @echo "html - Build HTML version of HOWTO Collection"
56 @echo "htmlman - Build html version of manpages"
57 @echo "txt - Build plain text version of HOWTO Collection"
60 pdf: ../Samba-HOWTO-Collection.pdf ../Samba-Developers-Guide.pdf
61 ps: ../Samba-HOWTO-Collection.ps ../Samba-Developers-Guide.ps
62 txt: ../textdocs/Samba-HOWTO-Collection.txt ../textdocs/Samba-Developers-Guide.txt
63 htmlman: $(MANPAGES_HTML)
64 html-single: ../$(HTMLDIR)/Samba-HOWTO-Collection.html ../$(HTMLDIR)/Samba-Developers-Guide.html
66 $(DOCBOOK2HTML) -d samba.dsl -o $(HTMLDIR) projdoc/samba-doc.sgml
68 ../Samba-HOWTO-Collection.txt: $(SGMLDIR)/samba-doc.sgml
69 $(DOCBOOK2TXT) -o .. $<
70 mv ../samba-doc.txt $@
72 ../Samba-Developers-Guide.txt: $(SGMLDIR)/samba-doc.sgml
73 $(DOCBOOK2TXT) -o .. $<
74 mv ../samba-doc.txt $@
76 ../Samba-HOWTO-Collection.ps: $(SGMLDIR)/samba-doc.sgml
77 $(DOCBOOK2PS) -o .. $<
80 ../Samba-Developers-Guide.ps: $(SGMLDIR)/samba-doc.sgml
81 $(DOCBOOK2PS) -o .. $<
84 ../Samba-HOWTO-Collection.pdf: ../$(HTMLDIR)/Samba-HOWTO-Collection.html
85 $(HTMLDOC) --book --color --links -f $@ $<
87 ../Samba-Developers-Guide.pdf: ../$(HTMLDIR)/Samba-Developers-Guide.html
88 $(HTMLDOC) --book --color --links -f $@ $<
90 ../$(HTMLDIR)/Samba-HOWTO-Collection.html: $(SGMLDIR)/samba-doc.sgml
91 $(DOCBOOK2HTML) -u -o .. $<
92 mv ../samba-doc.html $@
94 ../$(HTMLDIR)/Samba-Developers-Guide.html: devdoc/dev-doc.sgml
95 $(DOCBOOK2HTML) -u -o .. $<
99 $(HTMLDIR)/%.html: $(MANSGMLDIR)/%.sgml
100 $(DOCBOOK2HTML) -o $(HTMLDIR) $<
101 mv $(HTMLDIR)/index.html $@
103 $(MANDIR)/%: $(MANSGMLDIR)/%.sgml
104 $(DOCBOOK2MAN) -o $(MANDIR) $< || rm $@
105 $(PERL) scripts/strip-links.pl < $@ > $@.temp
109 rm -f $(MANPAGES) $(MANPAGES_HTML) ../$(HTMLDIR)/*.html ../Samba-HOWTO-Collection.p* ../Samba-Developers-Guide.p*