In the recipe of PDFTARGETS_OF_EPSORIG, first "cp" can be saved by directly running FIXFONTS script. Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx> --- Makefile | 2 ++ epstopdf-rule.mk | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d3fcffca..29c067c0 100644 --- a/Makefile +++ b/Makefile @@ -119,9 +119,11 @@ endef ifeq ($(URWPS),0) FIXSVGFONTS = utilities/fixsvgfonts.sh FIXANEPSFONTS = utilities/fixanepsfonts.sh +FIXFONTS = utilities/fixfonts.sh else FIXSVGFONTS = utilities/fixsvgfonts-urwps.sh FIXANEPSFONTS = utilities/fixanepsfonts-urwps.sh +FIXFONTS = utilities/fixfonts-urwps.sh endif ifeq ($(FREESANS),0) RECOMMEND_FREEFONT := 1 diff --git a/epstopdf-rule.mk b/epstopdf-rule.mk index 83d335f0..5bf4a435 100644 --- a/epstopdf-rule.mk +++ b/epstopdf-rule.mk @@ -13,8 +13,7 @@ $(PDFTARGETS_OF_EPSORIG): %.pdf: %.eps ifndef EPSTOPDF $(error $< --> $@: epstopdf not found. Please install it) endif - @cp $< $(basename $<)__.eps - @sh $(FIXANEPSFONTS) $(basename $<)__.eps + @sh $(FIXFONTS) < $< > $(basename $<)__.eps @eps2eps $(basename $<)__.eps $(basename $<)___.eps @epstopdf $(GS_OPT) $(basename $<)___.eps $@ @rm -f $(basename $<)__.eps $(basename $<)___.eps -- 2.17.1