summaryrefslogtreecommitdiff
path: root/docs/docbook
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2001-02-23 22:16:01 +0000
committerGerald Carter <jerry@samba.org>2001-02-23 22:16:01 +0000
commit8793c409dac9d3963547df768b92a3df51824186 (patch)
treeaa26b48b0844fb9470b6216a717ac162e64eb5f9 /docs/docbook
parentf0a53caf965e2e68a9701f8bd5dbd0638cdfd612 (diff)
downloadsamba-8793c409dac9d3963547df768b92a3df51824186.tar.gz
samba-8793c409dac9d3963547df768b92a3df51824186.tar.bz2
samba-8793c409dac9d3963547df768b92a3df51824186.zip
'make man' will generate all man pages now
(This used to be commit 4d126e8098aa5e862a5c995dec93564be1374424)
Diffstat (limited to 'docs/docbook')
-rw-r--r--docs/docbook/Makefile.in272
1 files changed, 223 insertions, 49 deletions
diff --git a/docs/docbook/Makefile.in b/docs/docbook/Makefile.in
index ade86851da..558cc15778 100644
--- a/docs/docbook/Makefile.in
+++ b/docs/docbook/Makefile.in
@@ -21,55 +21,229 @@ SGML_SHARE=/usr/local/share/sgml
HTML_STYLESHEET = $(srcdir)/stylesheets/html.dsl
HTML_DEPS = $(srcdir)/stylesheets/html-common.dsl $(srcdir)/stylesheets/common.dsl
-MANPAGES=manpages/findsmb.1.sgml manpages/smbclient.1.sgml \
- manpages/smbspool.8.sgml manpages/lmhosts.5.sgml \
- manpages/smbcontrol.1.sgml manpages/smbstatus.1.sgml \
- manpages/make_smbcodepage.1.sgml manpages/smbd.8.sgml \
- manpages/smbtar.1.sgml manpages/nmbd.8.sgml manpages/smbmnt.8.sgml \
- manpages/smbumount.8.sgml manpages/nmblookup.1.sgml \
- manpages/smbmount.8.sgml manpages/swat.8.sgml manpages/rpcclient.1.sgml \
- manpages/smbpasswd.5.sgml manpages/testparm.1.sgml manpages/samba.7.sgml \
- manpages/smbpasswd.8.sgml manpages/testprns.1.sgml \
- manpages/smb.conf.5.sgml manpages/smbrun.1.sgml manpages/wbinfo.1.sgml \
- manpages/smbcacls.1.sgml manpages/smbsh.1.sgml manpages/winbindd.8.sgml
-
-#Make instructions
-#all: html man pdf text
+MANPAGES=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 smbrun.1 wbinfo.1 \
+ smbcacls.1 smbsh.1 winbindd.8
+
+######################################################################
+# Make instructions
+######################################################################
all: man
-man: $(MANPAGES)
- @echo Building $< man page
- @$(ONSGMLS) $< | $(SGMLSPL) $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
-
-
-
-#Dependencies
-html.dsl: stylesheets/html.dsl.in ./config.status
- CONFIG_FILES=$@ CONFIG_HEADERS=./config.status
-
-common.dsl: stylesheets/common.dsl.in ./config.status
- CONFIG_FILES=$@ CONFIG_HEADERS=./config.status
-
-#Make Rule Aliases
-samba-pdc-faq: samba-pdc-faq.html samba-pdc-faq.txt
-samba-pdc-faq.html: faq/samba-pdc-faq.html
-samba-pdc-faq.txt: faq/samba-pdc-faq.txt
-
-
-faq/samba-pdc-faq.html: $(srcdir)/faq/samba-pdc-faq.sgml $(HTML_DEPS)
- @test -d docs || mkdir docs
- @test -d docs/faq || mkdir docs/faq
- $(JADE) $(CATALOG) -d $(HTML_STYLESHEET) -V use-output-dir -t sgml $(srcdir)/faq/samba-pdc-faq.sgml
-
-faq/faq.txt: samba-pdc-faq.html
- lynx -nolist -dump file:`pwd`/docs/faq/samba-pdc-faq.html > `pwd`/docs/faq/samba-pdc-faq.txt
-
-#Clean Rule
+man:
+ @echo Building man pages...
+ @for file in `/bin/ls manpages/*sgml`; do \
+ manfile=`basename $$file | sed "s/\.sgml//g"`; \
+ echo "Making $$manfile"; \
+ $(ONSGMLS) -f /tmp/docbook2x.log $$file | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl; \
+ cat /tmp/docbook2x.log | grep -v DTDDECL; \
+ /bin/rm -f /tmp/docbook2x.log; \
+ /bin/mv -f $$manfile ../manpages/$$manfile; \
+ done
+##
+## these rules are for building individual files
+##
+findsmb.1: manpages/findsmb.1.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+smbclient.1: manpages/smbclient.1.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+smbspool.8: manpages/smbspool.8.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+lmhosts.5: manpages/lmhosts.5.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+smbcontrol.1: manpages/smbcontrol.1.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+smbstatus.1: manpages/smbstatus.1.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+make_smbcodepage.1: manpages/make_smbcodepage.1.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+smbd.8: manpages/smbd.8.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+smbtar.1: manpages/smbtar.1.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+nmbd.8: manpages/nmbd.8.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+smbmnt.8: manpages/smbmnt.8.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+smbumount.8: manpages/smbumount.8.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+nmblookup.1: manpages/nmblookup.1.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+smbmount.8: manpages/smbmount.8.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+swat.8: manpages/swat.8.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+rpcclient.1: manpages/rpcclient.1.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+smbpasswd.5: manpages/smbpasswd.5.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+testparm.1: manpages/testparm.1.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+samba.7: manpages/samba.7.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+smbpasswd.8: manpages/smbpasswd.8.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+testprns.1: manpages/testprns.1.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+smb.conf.5: manpages/smb.conf.5.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+smbrun.1: manpages/smbrun.1.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+wbinfo.1: manpages/wbinfo.1.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+smbcacls.1: manpages/smbcacls.1.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+smbsh.1 : manpages/smbsh.1.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+winbindd.8: manpages/winbindd.8.sgml
+ @echo "Making $@"
+ @$(ONSGMLS) -f /tmp/docbook2x.log $< | $(SGMLSPL) \
+ $(SGML_SHARE)/docbook2X/docbook2man-spec.pl
+ @cat /tmp/docbook2x.log | grep -v DTDDECL
+ @/bin/rm -f /tmp/docbook2x.log
+
+
+
+
+## Clean Rule
clean:
- (
- cd $(srcdir) \
- rm -rf docs
- )
-
-
-
+ /bin/rm -f manpage.*