summaryrefslogtreecommitdiff
path: root/docs/docbook/Makefile.in
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2002-10-02 15:05:35 +0000
committerJelmer Vernooij <jelmer@samba.org>2002-10-02 15:05:35 +0000
commit7a822527e485303eb1c5b2f8a8d2efd8f836b688 (patch)
treef99bedfe367762c4cda4c9f3b77404eeaf38b2f4 /docs/docbook/Makefile.in
parent4cf8157ee92b503022bd8e646df5fa09e047d642 (diff)
downloadsamba-7a822527e485303eb1c5b2f8a8d2efd8f836b688.tar.gz
samba-7a822527e485303eb1c5b2f8a8d2efd8f836b688.tar.bz2
samba-7a822527e485303eb1c5b2f8a8d2efd8f836b688.zip
Fix Makefile.in (use variables instead of directory names, don't try to put files in ../../htmldocs, etc)
Add sam.sgml (This used to be commit dfb3ee0bb646557ef911c827a5a68ef9c7833835)
Diffstat (limited to 'docs/docbook/Makefile.in')
-rw-r--r--docs/docbook/Makefile.in79
1 files changed, 48 insertions, 31 deletions
diff --git a/docs/docbook/Makefile.in b/docs/docbook/Makefile.in
index 499c1742b8..04e1fe87c4 100644
--- a/docs/docbook/Makefile.in
+++ b/docs/docbook/Makefile.in
@@ -38,9 +38,13 @@ HTMLDOC = @HTMLDOC@
SRCDIR = @srcdir@
MANDIR=../manpages
HTMLDIR=../htmldocs
-MANSGMLDIR = manpages/
-SGMLDIR = projdoc/
+MANPROJDOC = manpages/
+PROJDOC = projdoc/
+DEVDOC = devdoc/
PERL = @PERL@
+PSDIR = ..
+PDFDIR = ..
+TXTDIR = ../textdocs
MANPAGES=$(patsubst %,$(MANDIR)/%,$(MANPAGES_NAMES))
MANPAGES_HTML=$(patsubst %,$(HTMLDIR)/%.html,$(MANPAGES_NAMES))
@@ -55,55 +59,68 @@ 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 "everything - Build all of the above"
+
+everything: manpages ps pdf html-single html htmlman txt
+
+# Global rules
manpages: $(MANPAGES)
-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
+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)
-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
-../Samba-HOWTO-Collection.txt: $(SGMLDIR)/samba-doc.sgml
- $(DOCBOOK2TXT) -o .. $<
- mv ../samba-doc.txt $@
+# Text files
+
+$(TXTDIR)/Samba-HOWTO-Collection.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 $@
+$(TXTDIR)/Samba-Developers-Guide.txt: $(PROJDOC)/samba-doc.sgml
+ $(DOCBOOK2TXT) -o . $<
+ mv ./samba-doc.txt $@
-../Samba-HOWTO-Collection.ps: $(SGMLDIR)/samba-doc.sgml
- $(DOCBOOK2PS) -o .. $<
- mv ../samba-doc.ps $@
+# PostScript
-../Samba-Developers-Guide.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-HOWTO-Collection.pdf: ../$(HTMLDIR)/Samba-HOWTO-Collection.html
+$(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
$(HTMLDOC) --book --color --links -f $@ $<
-../Samba-Developers-Guide.pdf: ../$(HTMLDIR)/Samba-Developers-Guide.html
+$(PDFDIR)/Samba-Developers-Guide.pdf: $(HTMLDIR)/Samba-Developers-Guide.html
$(HTMLDOC) --book --color --links -f $@ $<
-../$(HTMLDIR)/Samba-HOWTO-Collection.html: $(SGMLDIR)/samba-doc.sgml
- $(DOCBOOK2HTML) -u -o .. $<
- mv ../samba-doc.html $@
+# Single large HTML files
+
+$(HTMLDIR)/Samba-HOWTO-Collection.html: $(PROJDOC)/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: $(MANSGMLDIR)/%.sgml
- $(DOCBOOK2HTML) -o $(HTMLDIR) $<
- mv $(HTMLDIR)/index.html $@
+$(HTMLDIR)/%.html: $(MANPROJDOC)/%.sgml
+ $(DOCBOOK2HTML) -o . $<
+ mv ./index.html $@
-$(MANDIR)/%: $(MANSGMLDIR)/%.sgml
+$(MANDIR)/%: $(MANPROJDOC)/%.sgml
$(DOCBOOK2MAN) -o $(MANDIR) $< || rm $@
$(PERL) scripts/strip-links.pl < $@ > $@.temp
mv $@.temp $@
clean:
- rm -f $(MANPAGES) $(MANPAGES_HTML) ../$(HTMLDIR)/*.html ../Samba-HOWTO-Collection.p* ../Samba-Developers-Guide.p*
+ rm -f $(MANPAGES) $(MANPAGES_HTML) $(HTMLDIR)/*.html $(TXTDIR)/*.txt $(PSDIR)/*.ps $(PDFDIR)/*.pdf