summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/makefile b/makefile
index ffa4c63..b726870 100644
--- a/makefile
+++ b/makefile
@@ -4,13 +4,15 @@ FIGS=fig-susmag
DATA=data_square-4096
FUNCS=fig-mag_scaling-func fig-sus_scaling-func
-all: ${FIGS:%=figs/%.tex}
- rubber $(DOC).tex
- dvipdf $(DOC).dvi
+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