summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-04-21 15:19:34 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-04-21 15:19:34 +0000
commit8dc7087cf0306271e07a25ac2538206ef3eaa497 (patch)
treef1da6570a395b44647fd241daf9f9dc4c9882345 /docs
parente76eaf0f17de19eb2492572b0c79fc4b2657c504 (diff)
downloadsamba-8dc7087cf0306271e07a25ac2538206ef3eaa497.tar.gz
samba-8dc7087cf0306271e07a25ac2538206ef3eaa497.tar.xz
samba-8dc7087cf0306271e07a25ac2538206ef3eaa497.zip
Create ../textdocs, ../htmldocs or ../manpages if they don't exist already
Diffstat (limited to 'docs')
-rw-r--r--docs/docbook/Makefile.in30
1 files changed, 22 insertions, 8 deletions
diff --git a/docs/docbook/Makefile.in b/docs/docbook/Makefile.in
index e44108401d4..0739f43f84a 100644
--- a/docs/docbook/Makefile.in
+++ b/docs/docbook/Makefile.in
@@ -68,19 +68,22 @@ everything: manpages ps pdf html-single html htmlman txt htmlfaq
# Global rules
-manpages: $(MANPAGES)
-pdf: $(PDFDIR)/Samba-HOWTO-Collection.pdf ../Samba-Developers-Guide.pdf
-ps: $(PSDIR)/Samba-HOWTO-Collection.ps ../Samba-Developers-Guide.ps
-txt: $(TXTDIR)/Samba-HOWTO-Collection.txt $(TXTDIR)/Samba-Developers-Guide.txt
-htmlman: $(MANPAGES_HTML)
-htmlfaq:
+manpages: $(MANDIR) $(MANPAGES)
+pdf: $(PDFDIR) $(PDFDIR)/Samba-HOWTO-Collection.pdf ../Samba-Developers-Guide.pdf
+ps: $(PSDIR) $(PSDIR)/Samba-HOWTO-Collection.ps ../Samba-Developers-Guide.ps
+txt: $(TXTDIR) $(TXTDIR)/Samba-HOWTO-Collection.txt $(TXTDIR)/Samba-Developers-Guide.txt
+htmlman: $(HTMLDIR) $(MANPAGES_HTML)
+htmlfaq: $(HTMLDIR)
$(DOCBOOK2HTML) -d samba.dsl -o $(FAQDIR) $(FAQPROJDOC)/sambafaq.sgml
-html-single: $(HTMLDIR)/Samba-HOWTO-Collection.html $(HTMLDIR)/Samba-Developers-Guide.html
-html:
+html-single: $(HTMLDIR) $(HTMLDIR)/Samba-HOWTO-Collection.html $(HTMLDIR)/Samba-Developers-Guide.html
+html: $(HTMLDIR)
$(DOCBOOK2HTML) -d samba.dsl -o $(HTMLDIR) $(PROJDOC)/samba-doc.sgml
# Text files
+$(TXTDIR):
+ mkdir $(TXTDIR)
+
$(TXTDIR)/Samba-HOWTO-Collection.txt: $(PROJDOC)/samba-doc.sgml
$(DOCBOOK2TXT) -d samba.dsl -o . $<
mv ./samba-doc.txt $@
@@ -91,6 +94,9 @@ $(TXTDIR)/Samba-Developers-Guide.txt: $(DEVDOC)/dev-doc.sgml
# PostScript
+$(PSDIR):
+ mkdir $(PSDIR)
+
$(PSDIR)/Samba-HOWTO-Collection.ps: $(PROJDOC)/samba-doc.sgml
$(DOCBOOK2PS) -d samba.dsl -o . $<
mv ./samba-doc.ps $@
@@ -109,6 +115,9 @@ $(PDFDIR)/Samba-Developers-Guide.pdf: $(HTMLDIR)/Samba-Developers-Guide.html
# Single large HTML files
+$(HTMLDIR):
+ mkdir $(HTMLDIR)
+
$(HTMLDIR)/Samba-HOWTO-Collection.html: $(PROJDOC)/samba-doc.sgml
$(DOCBOOK2HTML) -d samba.dsl -u -o . $<
mv ./samba-doc.html $@
@@ -121,6 +130,11 @@ $(HTMLDIR)/Samba-Developers-Guide.html: $(DEVDOC)/dev-doc.sgml
$(HTMLDIR)/%.html: $(MANPROJDOC)/%.sgml
$(DOCBOOK2HTML) -d samba.dsl -u -o $(HTMLDIR) $<
+# Manpages
+
+$(MANDIR):
+ mkdir $(MANDIR)
+
$(MANDIR)/%: $(MANPROJDOC)/%.sgml
$(DOCBOOK2MAN) -d samba.dsl -o $(MANDIR) $<
$(PERL) scripts/strip-links.pl < $@ > $@.temp