Makefile 3.18 KB
Newer Older
1
all: dist.dat axis-count.tex size-gte-100.tex matrices xslt.dat xqy.dat
2 3 4 5 6 7

BENCHMARKS=benchmarks-all.xml \
		   benchmarks-xslt-full.xml benchmarks-xslt.xml \
		   benchmarks-xquery-full.xml benchmarks-xquery.xml 
matrices: $(BENCHMARKS)
	ant
8 9 10

# Remove generated files
clean: miniclean
11
	rm -f dist.dat axis-count.tex size-gte-100.tex captured_dist.dat
12 13
	rm -f $(BENCHMARKS)
	rm -f matrix_*_*.tex totals_*_*.tex
14

15 16 17 18 19 20 21 22
# Remove some generated files that are not useful as end products
miniclean:
	rm -f *gnuplottex-fig*.eps
	rm -f *gnuplottex-fig*.gnuplot
	rm -f *gnuplottex-fig*.tex
	rm -f *gnuplottex-fig*.pdf
	rm -f *.aux *.gnuploterrors *.log

23
size-gte-100.tex: $(wildcard ../../benchmark/*-full.xml)
24
	./size-gte.sh ../../benchmark/*-full.xml > size-gte-100.tex
Sylvain Schmitz's avatar
Sylvain Schmitz committed
25 26 27 28 29 30

axis-count.tex: $(wildcard ../../benchmark/*-axis-step.xml)
	./axis-count.sh > axis-count.tex

dist.dat: $(wildcard ../../benchmark/*-full.xml)
	./distribution.sh > dist.dat
31 32 33 34
captured_dist.dat: $(wildcard ../../benchmark/*-full.xml)
	./captured_distr.sh > captured_dist.dat
captured_dist.pdf: captured_dist.dat captured_dist.tex
	pdflatex --shell-escape captured_dist.tex
35

Sylvain Schmitz's avatar
Sylvain Schmitz committed
36 37 38 39 40 41
xslt-full.cov: coverage.sh full-frags.sh ../../relaxng/fragments-full.xml
	./coverage.sh xslt "`./full-frags.sh ../../relaxng/fragments-full.xml`" > xslt-full.cov

xslt-orig.cov: coverage.sh full-frags.sh ../../relaxng/fragments-full.xml
	./coverage.sh xslt "`./full-frags.sh ../../relaxng/fragments-orig.xml`" > xslt-orig.cov

Sylvain Schmitz's avatar
Sylvain Schmitz committed
42
xquery-full.cov: coverage.sh full-frags.sh ../../relaxng/fragments-full.xml
Sylvain Schmitz's avatar
Sylvain Schmitz committed
43 44 45 46 47 48 49 50 51 52
	./coverage.sh xquery "`./full-frags.sh ../../relaxng/fragments-full.xml`" > xquery-full.cov

xquery-orig.cov: coverage.sh full-frags.sh ../../relaxng/fragments-full.xml
	./coverage.sh xquery "`./full-frags.sh ../../relaxng/fragments-orig.xml`" > xquery-orig.cov

xslt.dat: bench.sh xslt-full.cov xslt-orig.cov $(wildcard ../../benchmark/*-full.xml) benchmarks-all-full.xml
	./bench.sh  xslt-full.cov xslt-orig.cov `grep 'type="xslt"' benchmarks-all-full.xml | sed -e 's/.*href="\([^"]*\).*/\1/'` > xslt.dat

xqy.dat: bench.sh xquery-full.cov xquery-orig.cov $(wildcard ../../benchmark/*-full.xml) benchmarks-all-full.xml
	./bench.sh xquery-full.cov xquery-orig.cov `grep 'type="xquery"' benchmarks-all-full.xml | sed -e 's/.*href="\([^"]*\).*/\1/'` > xqy.dat
53 54 55

test.pdf: xslt.dat xqy.dat test.tex
	pdflatex --shell-escape test.tex
56

57 58 59 60 61 62
%.xml: %-full.xml
	cat $< | sed -e 's/-full.xml/.xml/' > $@
benchmarks-xslt-full.xml: benchmarks-all-full.xml
	grep -v 'type="xquery"' $< > $@
benchmarks-xquery-full.xml: benchmarks-all-full.xml
	grep -v 'type="xslt"' $< > $@
63 64 65 66 67 68 69 70 71 72 73 74

contingency-size.dat: contingency-size.sh benchmarks-all-full.xml $(wildcard ../../benchmark/*-full.xml)
	./contingency-size.sh `grep 'href' benchmarks-all-full.xml | sed -e 's/.*href="\([^"]*\).*/\1/'` > contingency-size.dat

chisquare-size: contingency-size.dat chisquare.R
	./chisquare.R contingency-size.dat

contingency-axis-step.dat: contingency-axis-step.sh benchmarks-all-full.xml $(wildcard ../../benchmark/*-full.xml)
	./contingency-axis-step.sh `grep 'href' benchmarks-all-full.xml | sed -e 's/.*href="\([^"]*\).*/\1/'` > contingency-axis-step.dat

chisquare-axis-step: contingency-axis-step.dat chisquare.R
	./chisquare.R contingency-axis-step.dat