summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/disser/include/latex.fig.mk
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-04-30 16:42:27 +0000
committerKarl Berry <karl@freefriends.org>2008-04-30 16:42:27 +0000
commite80bc7d79084da75417e8364b1bae2d0fbd30781 (patch)
treeeb6d8b3d4f66250c1bca15488440532b6851cf83 /Master/texmf-dist/doc/latex/disser/include/latex.fig.mk
parentf743e5375a0cf6ae12b3a7137584eb7f3b8eab7b (diff)
disser update (29apr08)
git-svn-id: svn://tug.org/texlive/trunk@7743 c570f23f-e606-0410-a88d-b1316a301751
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.mk46
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"
-