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:
parent
c0e710aa66
commit
62dfc6c517
@ -143,10 +143,6 @@ $(TXTDIR)/%.txt: $(HTMLDIR)/%.html
|
|||||||
@mkdir -p $(@D)
|
@mkdir -p $(@D)
|
||||||
@$(DBLATEX) $(DBLATEX_OPTIONS) -t tex -o $@ $<
|
@$(DBLATEX) $(DBLATEX_OPTIONS) -t tex -o $@ $<
|
||||||
|
|
||||||
$(PDFDIR)/%.pdf: %.pdf
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
cp $< $@
|
|
||||||
|
|
||||||
# Dependency files
|
# Dependency files
|
||||||
%.d: $(DOCBOOKDIR)/%.xml xslt/generate-dependencies.xsl
|
%.d: $(DOCBOOKDIR)/%.xml xslt/generate-dependencies.xsl
|
||||||
@echo "Generating dependency file for $*"
|
@echo "Generating dependency file for $*"
|
||||||
@ -183,11 +179,11 @@ endif
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Adobe PDF files
|
# 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 $@ $<
|
$(DBLATEX) $(DBLATEX_OPTIONS) -I $*/images -t pdf -o $@ $<
|
||||||
|
|
||||||
# PostScript files
|
# 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 $@ $<
|
$(DBLATEX) $(DBLATEX_OPTIONS) -I $*/images -t ps -o $@ $<
|
||||||
|
|
||||||
%.eps: %.svg
|
%.eps: %.svg
|
||||||
@ -196,9 +192,6 @@ $(PSDIR)/%.ps: %/index.xml xslt/latex.xsl %-images-latex-eps
|
|||||||
%.png: %.svg
|
%.png: %.svg
|
||||||
$(INKSCAPE) -z -f $< --export-png=$@
|
$(INKSCAPE) -z -f $< --export-png=$@
|
||||||
|
|
||||||
#%.pdf: %.svg
|
|
||||||
# $(INKSCAPE) -z -f $< --export-pdf=$@
|
|
||||||
|
|
||||||
%.pdf: %.eps
|
%.pdf: %.eps
|
||||||
$(EPSTOPDF) $<
|
$(EPSTOPDF) $<
|
||||||
|
|
||||||
@ -248,6 +241,9 @@ $(SMBDOTCONFDOC)/parameters.service.xml: $(SMBDOTCONFDOC)/parameters.all.xml $(S
|
|||||||
@echo "Generating list of share-mode smb.conf options"
|
@echo "Generating list of share-mode smb.conf options"
|
||||||
$(XSLTPROC) --xinclude --param smb.context "'S'" --output $(SMBDOTCONFDOC)/parameters.service.xml $(SMBDOTCONFDOC)/generate-context.xsl $<
|
$(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
|
$(OUTPUTDIR)/%: $(DOCBOOKDIR)/%.xml xslt/man.xsl
|
||||||
@mkdir -p $(@D)
|
@mkdir -p $(@D)
|
||||||
$(XSLTPROC) --output $@ xslt/man.xsl $<
|
$(XSLTPROC) --output $@ xslt/man.xsl $<
|
||||||
|
Loading…
Reference in New Issue
Block a user