Makefile 772 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

all: chord.pdf


numqueries: ../tex/benchmarks-all-full.xml $(wildcard ../../benchmark/*-axis-step.xml)
	grep '<ast' `grep 'href' $< | sed -e 's/.*href="\([^"]*\).*/\1/'` | wc -l > $@

site/matrix.json: ../../xslt/matrix.xsl build.xml index.html numqueries xpp.css render.js lang-xpath.js prettify.css
	ant

chord.inner.svg: site/matrix.json phantom.js chord.css
	phantomjs phantom.js "file://$(PWD)/site/index.html" > chord.inner.svg

chord.svg: chord.inner.svg chord.css
	echo '<?xml version="1.0" standalone="no"?>' > $@
	echo '<svg id="chord" width="650" height="650"><defs><style type="text/css"><![CDATA[' >> $@
	cat chord.css >> $@
	echo ']]></style></defs>' >> $@
	sed -e 's/<svg[^>]*>//g' chord.inner.svg >> $@

chord.pdf: chord.svg
	inkscape $< --export-pdf=$@