summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/disser/include/latex.fig.mk
blob: 75089a8711ca658393767de9add957effd48eb61 (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
32
33
34
35
36
37
38
39
40
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"