diff options
author | Gerald Carter <jerry@samba.org> | 2001-02-23 22:38:23 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2001-02-23 22:38:23 +0000 |
commit | 4633fcfcc1a28644a465a240cc8ffb47adfaed08 (patch) | |
tree | db1be3c5b5b68b22377c42e24e9c515d432583d6 /docs/docbook | |
parent | 8793c409dac9d3963547df768b92a3df51824186 (diff) | |
download | samba-4633fcfcc1a28644a465a240cc8ffb47adfaed08.tar.gz samba-4633fcfcc1a28644a465a240cc8ffb47adfaed08.tar.bz2 samba-4633fcfcc1a28644a465a240cc8ffb47adfaed08.zip |
'make html` is ugly but it works....
(This used to be commit 416789f0b6180aefcae5f8421104252db4530b19)
Diffstat (limited to 'docs/docbook')
-rw-r--r-- | docs/docbook/Makefile.in | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/docs/docbook/Makefile.in b/docs/docbook/Makefile.in index 558cc15778..2b42b2ea05 100644 --- a/docs/docbook/Makefile.in +++ b/docs/docbook/Makefile.in @@ -20,6 +20,7 @@ SGMLSPL=@SGMLSPL@ SGML_SHARE=/usr/local/share/sgml HTML_STYLESHEET = $(srcdir)/stylesheets/html.dsl HTML_DEPS = $(srcdir)/stylesheets/html-common.dsl $(srcdir)/stylesheets/common.dsl +SGML_SHARE=/usr/local/share/sgml MANPAGES=findsmb.1 smbclient.1 \ smbspool.8 lmhosts.5 \ @@ -36,7 +37,7 @@ MANPAGES=findsmb.1 smbclient.1 \ ###################################################################### # Make instructions ###################################################################### -all: man +all: man html man: @echo Building man pages... @@ -45,10 +46,23 @@ man: 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; \ + cat /tmp/docbook2x.log | grep -v DTDDECL; \ + /bin/rm -f /tmp/docbook2x.log; \ /bin/mv -f $$manfile ../manpages/$$manfile; \ done + +html: + @echo Building HTML formatted man pages... + @for file in `/bin/ls manpages/*sgml`; do \ + htmlfile=`basename $$file | sed "s/\.sgml/\.html/g"`; \ + echo "Making $$htmlfile"; \ + $(JADE) -t sgml -V nochunks -d $(SGML_SHARE)/dsssl/docbook/html/docbook.dsl \ + -f /tmp/jade.log $$file > ../htmldocs/$$htmlfile; \ + cat /tmp/jade.log | grep -v DTDDECL; \ + /bin/rm -f /tmp/jade.log; \ + done + + ## ## these rules are for building individual files ## |