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