summaryrefslogtreecommitdiff
path: root/makefile
blob: b72687086518a62cd09c98060ef629c964874c10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

DOC=essential-ising
FIGS=fig-susmag
DATA=data_square-4096
FUNCS=fig-mag_scaling-func fig-sus_scaling-func

all: ${DOC}.pdf

figs/%.tex: figs/%.gplot ${DATA:%=data/%.dat} ${FUNCS:%=figs/%.dat}
	gnuplot $< > $@

${DOC}.pdf: ${DOC}.tex ${DOC}.bib ${FIGS:%=figs/%.tex}
	rubber $(DOC).tex
	dvipdf $(DOC).dvi

clean:
	rubber --clean $(DOC)
	rm -f $(DOC).pdf
	rm -f $(DOC)Notes.bib
	rm -f ${FIGS:%=figs/%.tex}