summaryrefslogtreecommitdiff
path: root/docs/docbook/Makefile.in
blob: 612c49513548bbe6c1637532ef6b7080cabe30ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#################################################################
# Makefile.in for Samba Documentation
# Authors:	James Moore <jmoore@php.net>
# 			Gerald Carter <jerry@samba.org>
# 			Jelmer Vernooij <jelmer@samba.org>
#
# Please see http://www.samba.org/samba/cvs.html
# for information on getting the latest  
# source and documentation source files.  
#

# Autoconf Variables

MANPAGES_NAMES=findsmb.1 smbclient.1 \
	smbspool.8 lmhosts.5 \
	smbcontrol.1  smbstatus.1 \
	make_smbcodepage.1  smbd.8 \
	smbtar.1 nmbd.8 smbmnt.8 \
	smbumount.8 nmblookup.1 \
	smbmount.8 swat.8 rpcclient.1	 \
	smbpasswd.5 testparm.1 samba.7 \
	smbpasswd.8 testprns.1 \
	smb.conf.5 wbinfo.1 pdbedit.8 \
	smbcacls.1 smbsh.1 winbindd.8 \
	make_unicodemap.1 net.8 \
	smbgroupedit.8 vfstest.1

## This part contains only rules. You shouldn't need to change it 
## if you are adding docs

DOCBOOK2MAN = @JW@ -b man
DOCBOOK2HTML = @JW@ -b html
DOCBOOK2PDF = @JW@ -b pdf
DOCBOOK2PS = @JW@ -b ps
DOCBOOK2TXT = @JW@ -b txt
DOCBOOK2INFO = @JW@ -b texi
HTMLDOC = @HTMLDOC@
SRCDIR = @srcdir@
MANDIR=../manpages
HTMLDIR=../htmldocs
MANSGMLDIR = manpages/
SGMLDIR = projdoc/
PERL = @PERL@

MANPAGES=$(patsubst %,$(MANDIR)/%,$(MANPAGES_NAMES))
MANPAGES_HTML=$(patsubst %,$(HTMLDIR)/%.html,$(MANPAGES_NAMES))

all: 
	@echo "Supported make targets:"
	@echo "manpages - Build manpages"
	@echo "ps - Build PostScript version of HOWTO Collection"
	@echo "pdf - Build PDF version of HOWTO Collection"
	@echo "html-single - Build single HTML version of HOWTO Collection"
	@echo "html - Build HTML version of HOWTO Collection and manpages"
	@echo "txt - Build plain text version of HOWTO Collection"

manpages: $(MANPAGES)
pdf: ../Samba-HOWTO-Collection.pdf
ps: ../Samba-HOWTO-Collection.ps
txt: ../Samba-HOWTO-Collection.txt
html: $(HTMLDIR)/samba-doc.html
html-single: ../Samba-HOWTO-Collection.html $(MANPAGES_HTML)

../Samba-HOWTO-Collection.txt: $(SGMLDIR)/samba-doc.sgml
	$(DOCBOOK2TXT) -o .. $<
	mv ../samba-doc.txt $@

../Samba-HOWTO-Collection.ps: $(SGMLDIR)/samba-doc.sgml
	$(DOCBOOK2PS) -o .. $<
	mv ../samba-doc.ps $@

../Samba-HOWTO-Collection.pdf: ../Samba-HOWTO-Collection.html
	$(HTMLDOC) --book --color --links -f $@ $<

../Samba-HOWTO-Collection.html: $(SGMLDIR)/samba-doc.sgml
	$(DOCBOOK2HTML) -u -o .. $<
	mv ../samba-doc.html $@

$(HTMLDIR)/samba-doc.html: $(SGMLDIR)/samba-doc.sgml
	$(DOCBOOK2HTML) -o $(HTMLDIR) $<

$(HTMLDIR)/%.html: $(MANSGMLDIR)/%.sgml
	$(DOCBOOK2HTML) -o $(HTMLDIR) $<

$(MANDIR)/%: $(MANSGMLDIR)/%.sgml 
	$(DOCBOOK2MAN) -o $(MANDIR) $<
	$(PERL) scripts/strip-links.pl < $@ > $@.temp
	mv $@.temp $@

clean: 
	rm -f $(MANPAGES) $(MANPAGES_HTML) ../htmldocs/*.html ../Samba-HOWTO-Collection.pdf ../Samba-HOWTO-Collection.ps