Makefile 2 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
countfuns_all.dat: countfuns.pl $(wildcard ../../benchmark/*-full.xml)
4 5
	grep 'type="\(xslt\|xquery\)"' ../tex/benchmarks-all-full.xml | \
	  sed -e 's/.*href="\(.*\.xml\)".*/\1/' | \
6
	  XPPSUF="all" xargs ./countfuns.pl
7 8 9 10 11 12 13 14 15 16

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
17

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

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

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

non-standard-xslt.xml: nonstandard.pl ../../benchmark/*-full.xml
Sylvain Schmitz's avatar
Sylvain Schmitz committed
28 29 30
	./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
31
	./nonstandard.pl all `grep 'type="\(xslt\|xquery\)"' ../tex/benchmarks-all-full.xml | sed -e 's/.*href="\([^"]*\).*/\1/'` > $@
32

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

36 37 38 39 40
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>" >> $@