24 lines
438 B
Makefile
24 lines
438 B
Makefile
PROJECT=$(basename $(wildcard *.gnuplot))
|
|
|
|
all: $(addsuffix .pdf, $(PROJECT))
|
|
|
|
define gnuplot2pdf
|
|
gnuplot $(1).gnuplot > $(1).tikz.tex
|
|
pdflatex -jobname $(1) -file-line-error $(1).tikz.tex
|
|
endef
|
|
|
|
bec_phase.pdf:
|
|
$(call gnuplot2pdf, $(basename $@))
|
|
|
|
clean-aux:
|
|
rm -f $(addsuffix .tikz.tex, $(PROJECT))
|
|
rm -f *.aux *.log
|
|
|
|
clean-dat:
|
|
rm -f phase_boundary.dat
|
|
|
|
clean-pdf:
|
|
rm -f $(addsuffix .pdf, $(PROJECT))
|
|
|
|
clean: clean-aux clean-pdf
|