summaryrefslogtreecommitdiff
path: root/docs/docbook/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'docs/docbook/Makefile.in')
-rw-r--r--docs/docbook/Makefile.in87
1 files changed, 33 insertions, 54 deletions
diff --git a/docs/docbook/Makefile.in b/docs/docbook/Makefile.in
index 1ac71e452b..c79c9008ff 100644
--- a/docs/docbook/Makefile.in
+++ b/docs/docbook/Makefile.in
@@ -38,15 +38,9 @@ HTMLDOC = @HTMLDOC@
SRCDIR = @srcdir@
MANDIR=../manpages
HTMLDIR=../htmldocs
-MANPROJDOC = manpages/
-PROJDOC = projdoc/
-DEVDOC = devdoc/
+MANSGMLDIR = manpages/
+SGMLDIR = projdoc/
PERL = @PERL@
-PSDIR = ..
-PDFDIR = ..
-TXTDIR = ../textdocs
-FAQPROJDOC = faq/
-FAQDIR = ../faq
MANPAGES=$(patsubst %,$(MANDIR)/%,$(MANPAGES_NAMES))
MANPAGES_HTML=$(patsubst %,$(HTMLDIR)/%.html,$(MANPAGES_NAMES))
@@ -61,70 +55,55 @@ all:
@echo "html - Build HTML version of HOWTO Collection"
@echo "htmlman - Build html version of manpages"
@echo "txt - Build plain text version of HOWTO Collection"
- @echo "htmlfaq - Build html version of the FAQ"
- @echo "everything - Build all of the above"
-
-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
+pdf: ../Samba-HOWTO-Collection.pdf ../Samba-Developers-Guide.pdf
+ps: ../Samba-HOWTO-Collection.ps ../Samba-Developers-Guide.ps
+txt: ../textdocs/Samba-HOWTO-Collection.txt ../textdocs/Samba-Developers-Guide.txt
htmlman: $(MANPAGES_HTML)
-htmlfaq:
- $(DOCBOOK2HTML) -d samba.dsl -o $(FAQDIR) $(FAQPROJDOC)/sambafaq.sgml
-html-single: $(HTMLDIR)/Samba-HOWTO-Collection.html $(HTMLDIR)/Samba-Developers-Guide.html
+html-single: ../$(HTMLDIR)/Samba-HOWTO-Collection.html ../$(HTMLDIR)/Samba-Developers-Guide.html
html:
- $(DOCBOOK2HTML) -d samba.dsl -o $(HTMLDIR) $(PROJDOC)/samba-doc.sgml
-
-# Text files
+ $(DOCBOOK2HTML) -d samba.dsl -o $(HTMLDIR) projdoc/samba-doc.sgml
-$(TXTDIR)/Samba-HOWTO-Collection.txt: $(PROJDOC)/samba-doc.sgml
- $(DOCBOOK2TXT) -o . $<
- mv ./samba-doc.txt $@
+../Samba-HOWTO-Collection.txt: $(SGMLDIR)/samba-doc.sgml
+ $(DOCBOOK2TXT) -o .. $<
+ mv ../samba-doc.txt $@
-$(TXTDIR)/Samba-Developers-Guide.txt: $(PROJDOC)/samba-doc.sgml
- $(DOCBOOK2TXT) -o . $<
- mv ./samba-doc.txt $@
+../Samba-Developers-Guide.txt: $(SGMLDIR)/samba-doc.sgml
+ $(DOCBOOK2TXT) -o .. $<
+ mv ../samba-doc.txt $@
-# PostScript
+../Samba-HOWTO-Collection.ps: $(SGMLDIR)/samba-doc.sgml
+ $(DOCBOOK2PS) -o .. $<
+ mv ../samba-doc.ps $@
-$(PSDIR)/Samba-HOWTO-Collection.ps: $(PROJDOC)/samba-doc.sgml
- $(DOCBOOK2PS) -o . $<
- mv ./samba-doc.ps $@
+../Samba-Developers-Guide.ps: $(SGMLDIR)/samba-doc.sgml
+ $(DOCBOOK2PS) -o .. $<
+ mv ../samba-doc.ps $@
-$(PSDIR)/Samba-Developers-Guide.ps: $(PROJDOC)/samba-doc.sgml
- $(DOCBOOK2PS) -o . $<
- mv ./samba-doc.ps $@
-
-# Adobe PDF files
-
-$(PDFDIR)/Samba-HOWTO-Collection.pdf: $(HTMLDIR)/Samba-HOWTO-Collection.html
+../Samba-HOWTO-Collection.pdf: ../$(HTMLDIR)/Samba-HOWTO-Collection.html
$(HTMLDOC) --book --color --links -f $@ $<
-$(PDFDIR)/Samba-Developers-Guide.pdf: $(HTMLDIR)/Samba-Developers-Guide.html
+../Samba-Developers-Guide.pdf: ../$(HTMLDIR)/Samba-Developers-Guide.html
$(HTMLDOC) --book --color --links -f $@ $<
-# Single large HTML files
-
-$(HTMLDIR)/Samba-HOWTO-Collection.html: $(PROJDOC)/samba-doc.sgml
- $(DOCBOOK2HTML) -u -o . $<
- mv ./samba-doc.html $@
+../$(HTMLDIR)/Samba-HOWTO-Collection.html: $(SGMLDIR)/samba-doc.sgml
+ $(DOCBOOK2HTML) -u -o .. $<
+ mv ../samba-doc.html $@
-$(HTMLDIR)/Samba-Developers-Guide.html: $(DEVDOC)/dev-doc.sgml
- $(DOCBOOK2HTML) -u -o . $<
- mv ./dev-doc.html $@
+../$(HTMLDIR)/Samba-Developers-Guide.html: devdoc/dev-doc.sgml
+ $(DOCBOOK2HTML) -u -o .. $<
+ mv ../dev-doc.html $@
-$(HTMLDIR)/%.html: $(MANPROJDOC)/%.sgml
- $(DOCBOOK2HTML) -u -o $(HTMLDIR) $<
+$(HTMLDIR)/%.html: $(MANSGMLDIR)/%.sgml
+ $(DOCBOOK2HTML) -o $(HTMLDIR) $<
+ mv $(HTMLDIR)/index.html $@
-$(MANDIR)/%: $(MANPROJDOC)/%.sgml
- $(DOCBOOK2MAN) -o $(MANDIR) $< || rm $@
+$(MANDIR)/%: $(MANSGMLDIR)/%.sgml
+ $(DOCBOOK2MAN) -o $(MANDIR) $<
$(PERL) scripts/strip-links.pl < $@ > $@.temp
mv $@.temp $@
clean:
- rm -f $(MANPAGES) $(MANPAGES_HTML) $(HTMLDIR)/*.html $(TXTDIR)/*.txt $(PSDIR)/*.ps $(PDFDIR)/*.pdf
+ rm -f $(MANPAGES) $(MANPAGES_HTML) ../$(HTMLDIR)/*.html ../Samba-HOWTO-Collection.p* ../Samba-Developers-Guide.p*