summaryrefslogtreecommitdiff
path: root/docs/docbook
diff options
context:
space:
mode:
Diffstat (limited to 'docs/docbook')
-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 e44108401d..0739f43f84 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