Makefile: Add dependencies to font-conversion scripts
PATCH 1/1 Makefile: Add dependencies to font-conversion scripts
One might miss the rebuild of .pdf files when a font-conversion script is updated.
Automate the rebuild by writing down such dependencies as make rules.
Signed-off-by Akira Yokosawa <[email protected]>
--- Makefile | 4 ++++ a2ping-rule.mk | 1 + epstopdf-rule.mk | 1 + 3 files changed, 6 insertions(+)
Makefile +4 -0
@@ -393,6 +393,7 @@ perfbook-a4.tex: # Rules related to perfbook_html are removed as of May, 2016 +$(EPSSOURCES_FROM_TEX): $(FIXANEPSFONTS) $(FIXFONTS) $(EPSSOURCES_FROM_TEX): %.eps: %.tex @echo "$< --> $(suffix $@)" sh utilities/mpostcheck.sh
@@ -400,6 +401,7 @@ $(EPSSOURCES_FROM_TEX): %.eps: %.tex @dvips -Pdownload35 -E $(patsubst %.tex,%.dvi,$<) -o $@ > /dev/null 2>&1 @sh $(FIXANEPSFONTS) $@ +$(EPSSOURCES_FROM_DOT): $(FIXANEPSFONTS) $(FIXFONTS) $(EPSSOURCES_FROM_DOT): %.eps: %.dot @echo "$< --> $(suffix $@)" ifndef DOT
@@ -408,6 +410,7 @@ endif @dot -Tps -o $@ $< @sh $(FIXANEPSFONTS) $@ +$(EPSSOURCES_FROM_FIG): $(FIXANEPSFONTS) $(FIXFONTS) $(EPSSOURCES_FROM_FIG): %.eps: %.fig @echo "$< --> $(suffix $@)" ifndef FIG2EPS
@@ -423,6 +426,7 @@ else include epstopdf-rule.mk endif +$(PDFTARGETS_OF_SVG): $(FIXSVGFONTS) $(PDFTARGETS_OF_SVG): %.pdf: %.svg @echo "$< --> $(suffix $@)" ifeq ($(STEELFONT),0)
a2ping-rule.mk +1 -0
@@ -29,6 +29,7 @@ ifdef A2PING endif endif +$(PDFTARGETS_OF_GNUPLOT_NEEDFIXFONTS): $(FIXANEPSFONTS) $(FIXFONTS) $(PDFTARGETS_OF_GNUPLOT_NEEDFIXFONTS): %.pdf: %.eps @echo "$< --> $(suffix $@) (by a2ping)" ifndef A2PING
epstopdf-rule.mk +1 -0
@@ -8,6 +8,7 @@ EPSTOPDF := $(shell which epstopdf 2>/dev/null) GS_953_OR_LATER := $(shell gs --version | grep -c -E "9\.5[3-9].?") GS_OPT=--gsopt=-dPDFSETTINGS=/ebook +$(PDFTARGETS_OF_GNUPLOT_NEEDFIXFONTS): $(FIXFONTS) $(PDFTARGETS_OF_GNUPLOT_NEEDFIXFONTS): %.pdf: %.eps @echo "$< --> $(suffix $@)" ifndef EPSTOPDF
base-commit: 25705d5d0328cabdc48af567b253f73e027928a1
Signature · 1 line
2.17.1
Paul E. McKenney
AppliedQuoted 6 lines · Akira Yokosawa
One might miss the rebuild of .pdf files when a font-conversion script is updated.
Automate the rebuild by writing down such dependencies as make rules.
Signed-off-by Akira Yokosawa <[email protected]>
Queued and pushed, thank you!
Thanx, Paul
Quoted 71 lines
--- Makefile | 4 ++++ a2ping-rule.mk | 1 + epstopdf-rule.mk | 1 + 3 files changed, 6 insertions(+)Makefile +4
-0@@ -393,6 +393,7 @@ perfbook-a4.tex: # Rules related to perfbook_html are removed as of May, 2016 +$(EPSSOURCES_FROM_TEX): $(FIXANEPSFONTS) $(FIXFONTS) $(EPSSOURCES_FROM_TEX): %.eps: %.tex @echo "$< --> $(suffix $@)" sh utilities/mpostcheck.sh@@ -400,6 +401,7 @@ $(EPSSOURCES_FROM_TEX): %.eps: %.tex @dvips -Pdownload35 -E $(patsubst %.tex,%.dvi,$<) -o $@ > /dev/null 2>&1 @sh $(FIXANEPSFONTS) $@ +$(EPSSOURCES_FROM_DOT): $(FIXANEPSFONTS) $(FIXFONTS) $(EPSSOURCES_FROM_DOT): %.eps: %.dot @echo "$< --> $(suffix $@)" ifndef DOT@@ -408,6 +410,7 @@ endif @dot -Tps -o $@ $< @sh $(FIXANEPSFONTS) $@ +$(EPSSOURCES_FROM_FIG): $(FIXANEPSFONTS) $(FIXFONTS) $(EPSSOURCES_FROM_FIG): %.eps: %.fig @echo "$< --> $(suffix $@)" ifndef FIG2EPS@@ -423,6 +426,7 @@ else include epstopdf-rule.mk endif +$(PDFTARGETS_OF_SVG): $(FIXSVGFONTS) $(PDFTARGETS_OF_SVG): %.pdf: %.svg @echo "$< --> $(suffix $@)" ifeq ($(STEELFONT),0)a2ping-rule.mk +1
-0@@ -29,6 +29,7 @@ ifdef A2PING endif endif +$(PDFTARGETS_OF_GNUPLOT_NEEDFIXFONTS): $(FIXANEPSFONTS) $(FIXFONTS) $(PDFTARGETS_OF_GNUPLOT_NEEDFIXFONTS): %.pdf: %.eps @echo "$< --> $(suffix $@) (by a2ping)" ifndef A2PINGepstopdf-rule.mk +1
-0@@ -8,6 +8,7 @@ EPSTOPDF := $(shell which epstopdf 2>/dev/null) GS_953_OR_LATER := $(shell gs --version | grep -c -E "9\.5[3-9].?") GS_OPT=--gsopt=-dPDFSETTINGS=/ebook +$(PDFTARGETS_OF_GNUPLOT_NEEDFIXFONTS): $(FIXFONTS) $(PDFTARGETS_OF_GNUPLOT_NEEDFIXFONTS): %.pdf: %.eps @echo "$< --> $(suffix $@)" ifndef EPSTOPDFbase-commit:
25705d5d0328cabdc48af567b253f73e027928a1Signature · 1 line
2.17.1