summaryrefslogtreecommitdiff
path: root/docs-xml/Makefile
diff options
context:
space:
mode:
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 $<