Makefile 1013 Bytes
Newer Older
1 2 3 4

all: chord.pdf


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

Sylvain Schmitz's avatar
Sylvain Schmitz committed
8
site/matrix.json: ../../xslt/matrix.xsl build.xml index.html numqueries xpp.css render.js lang-xpath.js prettify.css $(wildcard ../../benchmark/*-full.xml)
9 10 11
	ant

chord.inner.svg: site/matrix.json phantom.js chord.css
12
	phantomjs phantom.js "file://$(PWD)/site/index.html" chord.inner.svg
13 14 15 16 17 18

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>' >> $@
19 20 21
	# Remove opening <svg>
	# + remove buggy NS[1..6] namespaces that show up on some systems...
	sed -e 's/<svg[^>]*>//' -e 's/NS.:/xlink:/g' chord.inner.svg >> $@
22 23 24

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

clean:
	rm -f chord.inner.svg chord.svg chord.pdf