diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/disser/include/latex.fig.mk')
-rw-r--r-- | Master/texmf-dist/doc/latex/disser/include/latex.fig.mk | 46 |
1 files changed, 30 insertions, 16 deletions
diff --git a/Master/texmf-dist/doc/latex/disser/include/latex.fig.mk b/Master/texmf-dist/doc/latex/disser/include/latex.fig.mk index 75089a8711c..f3e23d5ded5 100644 --- a/Master/texmf-dist/doc/latex/disser/include/latex.fig.mk +++ b/Master/texmf-dist/doc/latex/disser/include/latex.fig.mk @@ -3,34 +3,49 @@ # Author: Stanislav Kruchinin <stanislav.kruchinin@gmail.com> # -EPSTOOL=epstool -EPSTOPDF=epstopdf +E2E?=eps2eps +EPSTOOL?=epstool +EPSTOPDF?=epstopdf -ETFLAGS=--quiet --copy --bbox +E2EFLAGS?=-dSAFER +ETFLAGS?=--quiet --copy --bbox -FIGCLFILES=*.pdf -SUFFIX=~ +E2EFILES?=*.eps +E2PFILES?=*.eps +FBBFILES?=*.eps +FIGCLFILES?=*.pdf +SUFFIX?=~ # end of configuration help: - @echo Targets: - @echo " clean - clean PDF files" - @echo " epstopdf - convert all figures to PDF" - @echo " fixbb - fix BoundingBox" - @echo " help - (default) show help" + @echo "Targets:" + @echo " clean clean PDF files" + @echo " epstoeps optimize EPS files" + @echo " epstopdf convert all figures to PDF" + @echo " fixbb fix BoundingBox of EPS files" + @echo " help (default) show help" clean: rm -f $(FIGCLFILES) -epstopdf: $(patsubst %.eps, %.pdf, $(wildcard *.eps)) +epstoeps: $(E2EFILES) + @for f in $^ ;\ + do \ + echo -n "fixbb: $$f..." ;\ + $(E2E) $(E2EFLAGS) $$f $$f$(SUFFIX) ;\ + mv $$f$(SUFFIX) $$f ;\ + echo "done" ;\ + done + +epstopdf: $(patsubst %.eps, %.pdf, $(wildcard $(E2PFILES))) -fixbb: *.eps - @for f in *.eps ; \ +fixbb: $(FBBFILES) + @for f in $^ ;\ do \ echo -n "fixbb: $$f..." ;\ - $(EPSTOOL) $(ETFLAGS) $$f $$f~ ;\ - mv $$f~ $$f ;\ + $(EPSTOOL) $(ETFLAGS) $$f $$f$(SUFFIX) ;\ + mv $$f$(SUFFIX) $$f ;\ echo "done" ;\ done @@ -38,4 +53,3 @@ fixbb: *.eps @echo -n "epstopdf: $<..." @$(EPSTOPDF) "$<" @echo "done" - |