summaryrefslogtreecommitdiff
path: root/docs-xml/Makefile
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-05-01 20:25:34 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-05-01 22:49:12 +0200
commit62dfc6c51753cd2b8a5a943353f61656fc868fbc (patch)
tree6aef536644c5877df9efb0c8fadfaaf6254596d7 /docs-xml/Makefile
parentc0e710aa6611db8cd1451e1db0e8f9f8bca2125e (diff)
downloadsamba-62dfc6c51753cd2b8a5a943353f61656fc868fbc.tar.gz
samba-62dfc6c51753cd2b8a5a943353f61656fc868fbc.tar.bz2
samba-62dfc6c51753cd2b8a5a943353f61656fc868fbc.zip
Generate pdf documents in-place rather than copying them from . to output/
Diffstat (limited to 'docs-xml/Makefile')
-rw-r--r--docs-xml/Makefile14
1 files changed, 5 insertions, 9 deletions
diff --git a/docs-xml/Makefile b/docs-xml/Makefile
index 5d3cc46baf..486a11190c 100644
--- a/docs-xml/Makefile
+++ b/docs-xml/Makefile
@@ -143,10 +143,6 @@ $(TXTDIR)/%.txt: $(HTMLDIR)/%.html
@mkdir -p $(@D)
@$(DBLATEX) $(DBLATEX_OPTIONS) -t tex -o $@ $<
-$(PDFDIR)/%.pdf: %.pdf
- @mkdir -p $(@D)
- cp $< $@
-
# Dependency files
%.d: $(DOCBOOKDIR)/%.xml xslt/generate-dependencies.xsl
@echo "Generating dependency file for $*"
@@ -183,11 +179,11 @@ endif
endif
# Adobe PDF files
-%.pdf: %/index.xml xslt/latex.xsl %-images-latex-png %-images-latex-pdf
+$(PDFDIR)/%.pdf: %/index.xml $(PDFDIR) xslt/latex.xsl %-images-latex-png %-images-latex-pdf
$(DBLATEX) $(DBLATEX_OPTIONS) -I $*/images -t pdf -o $@ $<
# PostScript files
-$(PSDIR)/%.ps: %/index.xml xslt/latex.xsl %-images-latex-eps
+$(PSDIR)/%.ps: %/index.xml $(PSDIR) xslt/latex.xsl %-images-latex-eps
$(DBLATEX) $(DBLATEX_OPTIONS) -I $*/images -t ps -o $@ $<
%.eps: %.svg
@@ -196,9 +192,6 @@ $(PSDIR)/%.ps: %/index.xml xslt/latex.xsl %-images-latex-eps
%.png: %.svg
$(INKSCAPE) -z -f $< --export-png=$@
-#%.pdf: %.svg
-# $(INKSCAPE) -z -f $< --export-pdf=$@
-
%.pdf: %.eps
$(EPSTOPDF) $<
@@ -248,6 +241,9 @@ $(SMBDOTCONFDOC)/parameters.service.xml: $(SMBDOTCONFDOC)/parameters.all.xml $(S
@echo "Generating list of share-mode smb.conf options"
$(XSLTPROC) --xinclude --param smb.context "'S'" --output $(SMBDOTCONFDOC)/parameters.service.xml $(SMBDOTCONFDOC)/generate-context.xsl $<
+$(OUTPUTDIR):
+ test -d $@ || mkdir $@
+
$(OUTPUTDIR)/%: $(DOCBOOKDIR)/%.xml xslt/man.xsl
@mkdir -p $(@D)
$(XSLTPROC) --output $@ xslt/man.xsl $<