1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

Generate pdf documents in-place rather than copying them from . to output/

This commit is contained in:
Jelmer Vernooij 2009-05-01 20:25:34 +02:00
parent c0e710aa66
commit 62dfc6c517

View File

@ -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 $<