summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/disser/templates/latex.fig.mk
blob: a3e37c985051e2c1a0b1266b42a59982201fb034 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#
# Makefile for figures
# Author: Stanislav Kruchinin <stas@crypt.org.ru>
#

all:
	@echo "run: make fixbb to fix BoundingBox"
	@echo "run: make pdf to convert all figures to PDF"
	@echo "run: make clean to clean PDF files"

fixbb: *.eps
	@echo -e "\nFixing BoundingBoxes...\n"
	@for f in *.eps ; \
	do \
		echo -n "$$f..." ;\
		epstool --quiet --copy --bbox $$f $$f~ ;\
		mv $$f~ $$f ;\
		echo "OK" ;\
	done

pdf: *.eps
	@echo -e "\nConverting figures to PDF...\n"
	@for f in *.eps ; \
	do \
		echo -n "$$f..." ;\
		epstopdf $$f ;\
		echo "OK" ;\
	done

clean:
	rm -f *.pdf