# # Makefile for figures # Author: Stanislav Kruchinin # 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