Makefile 1.89 KB
Newer Older
Sylvain Schmitz's avatar
Sylvain Schmitz committed
1
all: extensions.xml gains-ext.tex countfuns_all.dat countfuns_xslt.dat countfuns_xquery.dat non-standard-xquery.xml non-standard-xslt.xml non-standard-all.xml
David BAELDE's avatar
David BAELDE committed
2

3 4 5 6 7 8 9 10 11 12 13 14
countfuns_all.dat: countfuns.pl $(wildcard ../../benchmark/*-full.xml)
	XPPSUF="all" ./countfuns.pl ../../benchmark/*-full.xml

countfuns_xslt.dat: countfuns.pl $(wildcard ../../benchmark/*-full.xml)
	grep 'type="xslt"' ../tex/benchmarks-all-full.xml | \
	  sed -e 's/.*href="\(.*\.xml\)".*/\1/' | \
	  XPPSUF="xslt" xargs ./countfuns.pl

countfuns_xquery.dat: countfuns.pl $(wildcard ../../benchmark/*-full.xml)
	grep 'type="xquery"' ../tex/benchmarks-all-full.xml | \
	  sed -e 's/.*href="\(.*\.xml\)".*/\1/' | \
	  XPPSUF="xquery" xargs ./countfuns.pl
Sylvain Schmitz's avatar
Sylvain Schmitz committed
15

Sylvain Schmitz's avatar
m  
Sylvain Schmitz committed
16
extensions.xml: extensions.sh $(wildcard ../../benchmark/*-full.xml)
17
	@bash extensions.sh > extensions.xml
18 19 20

gains-ext.tex: gains.sh $(wildcard ../../benchmark/*-full.xml)
	./gains.sh > gains-ext.tex
21 22

non-standard-xquery.xml: nonstandard.pl ../../benchmark/*-full.xml
Sylvain Schmitz's avatar
Sylvain Schmitz committed
23
	./nonstandard.pl  xquery `grep 'type="xquery"' ../tex/benchmarks-all-full.xml | sed -e 's/.*href="\([^"]*\).*/\1/'` > $@
24 25

non-standard-xslt.xml: nonstandard.pl ../../benchmark/*-full.xml
Sylvain Schmitz's avatar
Sylvain Schmitz committed
26 27 28 29
	./nonstandard.pl xslt `grep 'type="xslt"' ../tex/benchmarks-all-full.xml | sed -e 's/.*href="\([^"]*\).*/\1/'` > $@

non-standard-all.xml: nonstandard.pl ../../benchmark/*-full.xml
	./nonstandard.pl all `grep 'href' ../tex/benchmarks-all-full.xml | sed -e 's/.*href="\([^"]*\).*/\1/'` > $@
30

31
%.reasons: %.xml
32
	xmlstarlet sel -t -v '//xpath/schemas/validation[@valid="no" and contains(@schema, "efo-extra")]/text()' -n $*.xml | sort | uniq -c > $*.reasons
33

34 35 36 37 38
non-standard-no-last-no-position-xslt.xml: non-standard-xslt.xml
	echo "<?xml version=\"1.0\"?>" > $@
	echo "<benchmark>" >> $@
	xmlstarlet sel -N xqx="http://www.w3.org/2005/XQueryX" -t -c "//xpath[schemas][not(ast//xqx:functionName[text()='last' or text()='position'])]" -n $< >> $@
	echo "</benchmark>" >> $@