From 62dfc6c51753cd2b8a5a943353f61656fc868fbc Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 1 May 2009 20:25:34 +0200 Subject: [PATCH] Generate pdf documents in-place rather than copying them from . to output/ --- docs-xml/Makefile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/docs-xml/Makefile b/docs-xml/Makefile index 5d3cc46baff..486a11190c2 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 $<