Initial commit.
[collect-bench] / Makefile
1 ### -*-makefile-*-
2
3 all::
4 clean::
5 .PHONY: all clean
6
7 PWD := $(shell pwd)
8 LISPS = sbcl ccl ecl clisp cmucl abcl
9
10 RUNLISP = $(HOME)/src/runlisp/build/runlisp
11
12 REPORTS = $(addprefix report., $(LISPS))
13 clean::; rm -f $(REPORTS)
14 $(REPORTS): report.%: collect.lisp bench.asd bench.lisp benchspt.c
15 cl-launch -X -S $(PWD): -s bench -l $* -- $< >$@.new && mv $@.new $@
16
17 PLOTS = $(patsubst %,plot-%.tex, $(LISPS))
18 clean:: rm -f $(PLOTS)
19 $(PLOTS): plot-%.tex: report.% plot.gp
20 gnuplot -e "file = '$<'" plot.gp >$@.new && mv $@.new $@
21
22 all:: collect.pdf
23 clean::; rm -f collect.pdf
24 collect.pdf: collect.tex $(PLOTS)
25 pdflatex $<