summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/disser/include/latex.fig.mk
diff options
context:
space:
mode:
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.mk41
1 files changed, 41 insertions, 0 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
new file mode 100644
index 00000000000..75089a8711c
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/disser/include/latex.fig.mk
@@ -0,0 +1,41 @@
+#
+# Makefile for EPS figures
+# Author: Stanislav Kruchinin <stanislav.kruchinin@gmail.com>
+#
+
+EPSTOOL=epstool
+EPSTOPDF=epstopdf
+
+ETFLAGS=--quiet --copy --bbox
+
+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"
+
+clean:
+ rm -f $(FIGCLFILES)
+
+epstopdf: $(patsubst %.eps, %.pdf, $(wildcard *.eps))
+
+fixbb: *.eps
+ @for f in *.eps ; \
+ do \
+ echo -n "fixbb: $$f..." ;\
+ $(EPSTOOL) $(ETFLAGS) $$f $$f~ ;\
+ mv $$f~ $$f ;\
+ echo "done" ;\
+ done
+
+%.pdf: %.eps
+ @echo -n "epstopdf: $<..."
+ @$(EPSTOPDF) "$<"
+ @echo "done"
+