blob: 123cad7674ea7453e84045a207ca7f162481c703 (
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
|
#
# 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: $(patsubst %.eps, %.pdf, $(wildcard *.eps))
%.pdf: %.eps
epstopdf "$<"
clean:
rm -f *.pdf
|