1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

Create ../textdocs, ../htmldocs or ../manpages if they don't exist already

This commit is contained in:
Jelmer Vernooij -
parent e76eaf0f17
commit 8dc7087cf0

View File

@ -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