Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(582)

Unified Diff: stepmake/stepmake/texinfo-rules.make

Issue 357760043: Issue 5381: Change intermediate PDF filename
Patch Set: Use different dir for LaTeX etc. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « make/lilypond-book-rules.make ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: stepmake/stepmake/texinfo-rules.make
diff --git a/stepmake/stepmake/texinfo-rules.make b/stepmake/stepmake/texinfo-rules.make
index df04e1ebe33e765c85b7f502bb0852b0a03be6e0..fb37fa589b12db5004b6c34802a7534494439b0d 100644
--- a/stepmake/stepmake/texinfo-rules.make
+++ b/stepmake/stepmake/texinfo-rules.make
@@ -66,17 +66,34 @@ $(XREF_MAPS_DIR)/%.xref-map: $(outdir)/%.texi | $(OUT_TEXINFO_MANUALS)
$(buildscript-dir)/extract_texi_filenames $(XREF_MAP_FLAGS) -q -o $(XREF_MAPS_DIR) $<
endif
-$(outdir)/%.pdf: $(outdir)/%.texi $(outdir)/version.itexi $(outdir)/%.pdf.omf $(outdir)/weblinks.itexi | $(OUT_TEXINFO_MANUALS)
+TEXI2PDF_WEB_VERSION_FLAGS :=
ifeq ($(WEB_VERSION),yes)
- PDFTEX=$(PDFTEX) PDFLATEX=$(PDFLATEX) $(buildscript-dir)/run-and-check "cd $(outdir); texi2pdf $(TEXI2PDF_FLAGS) -D web_version -I $(abs-src-dir) $(TEXINFO_PAPERSIZE_OPTION) $(<F) < /dev/null" "$*.texi2pdf.log"
-else
- PDFTEX=$(PDFTEX) PDFLATEX=$(PDFLATEX) $(buildscript-dir)/run-and-check "cd $(outdir); texi2pdf $(TEXI2PDF_FLAGS) -I $(abs-src-dir) $(TEXINFO_PAPERSIZE_OPTION) $(<F) < /dev/null" "$*.texi2pdf.log"
+TEXI2PDF_WEB_VERSION_FLAGS += -D web_version
endif
+
+$(outdir)/%.pdf: $(outdir)/%.texi $(outdir)/version.itexi $(outdir)/%.pdf.omf $(outdir)/weblinks.itexi | $(OUT_TEXINFO_MANUALS)
+ PDFTEX=$(PDFTEX) PDFLATEX=$(PDFLATEX) \
+ $(buildscript-dir)/run-and-check \
+ "cd $(outdir); \
+ texi2pdf $(TEXI2PDF_FLAGS) \
+ $(TEXI2PDF_WEB_VERSION_FLAGS) \
+ -I $(abs-src-dir) \
+ $(TEXINFO_PAPERSIZE_OPTION) \
+ -o $*.tmp.pdf \
+ $(<F) \
+ < /dev/null" \
+ "$*.texi2pdf.log"
ifeq ($(USE_EXTRACTPDFMARK),yes)
- $(EXTRACTPDFMARK) -o $(outdir)/$*.pdfmark $@
- $(GS920) -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dAutoRotatePages=/None -sOutputFile=$(outdir)/$*.final.pdf -c "30000000 setvmthreshold" -f $(top-build-dir)/out-fonts/*.font.ps $(outdir)/$*.pdfmark $@
- rm $@
- mv $(outdir)/$*.final.pdf $@
+ $(EXTRACTPDFMARK) -o $(outdir)/$*.pdfmark $(outdir)/$*.tmp.pdf
+ $(GS920) -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dAutoRotatePages=/None \
+ -sOutputFile=$@ \
+ -c "30000000 setvmthreshold" \
+ -f $(top-build-dir)/out-fonts/*.font.ps \
+ $(outdir)/$*.pdfmark \
+ $(outdir)/$*.tmp.pdf
+ rm $(outdir)/$*.tmp.pdf
+else
+ mv $(outdir)/$*.tmp.pdf $@
endif
$(outdir)/%.txt: $(outdir)/%.texi $(outdir)/version.itexi $(outdir)/weblinks.itexi | $(OUT_TEXINFO_MANUALS)
« no previous file with comments | « make/lilypond-book-rules.make ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b