?prevdifflink? - Blame
###########################################################################
#
# Parameters
#
max:
(cd ..; $(MAKE) top=xpto/XptoDemo.hs extraOpts="-O3 -fvia-C -fexcess-precision -optc-O3 -optc-ffast-math -no-recomp -funbox-strict-fields -ixpto -o Main" ghc; mv Main xpto/xpto)
all:
(cd ..; $(MAKE) top=xpto/XptoDemo.hs extraOpts="-ixpto -o Main" ghc; mv Main xpto/xpto)
###########################################################################
#
# Testing
#
eval: all
# time ./xpto -i ../examples/mclibrary.xml -x ../examples/mclibrary.xsd -q "(//Item[Comment]//Lyrics)[1] union //Item[Comment,Lyrics][1]/Name"
# time ./xpto -i ../examples/ze.xml -x ../examples/messenger.xsd -q "//User[@FriendlyName][4]"
time ./xpto -i ../examples/imdbNoTVDir.xml -x ../examples/imdbNoTVDir.xsd -q "//movie/actor"
# time ./xpto -i ../examples/randj.xml -x ../examples/randj.xsd -q "//endgutmeta"
gen: all
# time ./xpto -x ../examples/messenger.xsd -q //Join[1] | tail -n +4 > Examples/XPathDemo.hs
# time ./xpto -x ../examples/randj.xsd -q "(//act/title)[1]" | tail -n +4 > Examples/XPathDemo.hs
# time ./xpto -x ../examples/mclibrary.xsd -q "(//Item[Comment]//Lyrics)[1] union //Item[Comment,Lyrics][1]/Name" | tail -n +4 > Examples/XPathDemo.hs
time ./xpto -x ../examples/xml/imdb.xsd -q "//review" > Examples/XPathDemo.hs
#//movie[year,review]/(title union box_office[date][5]/country)
compile:
@$(MAKE) compile-script source=xpto/Examples/XPathDemo.hs
compile-script:
(cd ..; $(MAKE) top=${source} extraOpts="-ixpto -o Main" ghc; mv Main xpto/xpathdemo)
#-fcontext-stack=40 -O2 -fvia-C -fexcess-precision -optc-O3 -optc-ffast-math -no-recomp -funbox-strict-fields
# (cd ..; $(MAKE) top=${source} extraOpts="-ixpto -o Main -fcontext-stack=40 -prof -auto-all -O2 -fvia-C -fexcess-precision -optc-O3 -optc-ffast-math -no-recomp -funbox-strict-fields" ghc; mv Main xpto/xpathdemo)
run:
# @$(MAKE) run-script xmlfiles='../examples/flavio.xml'
# @$(MAKE) run-script xmlfiles='../examples/randjBig.xml'
@$(MAKE) run-script xmlfiles='../examples/imdbNoTVDir.xml'
# @$(MAKE) run-script xmlfiles='../examples/imdbNoTVDir-100Kb.xml'
# @$(MAKE) run-script xmlfiles='../examples/imdbNoTVDir-500Kb.xml'
# @$(MAKE) run-script xmlfiles='../examples/imdbNoTVDir-1Mb.xml'
# @$(MAKE) run-script xmlfiles='../examples/imdbNoTVDir-5Mb.xml'
# @$(MAKE) run-script xmlfiles='../examples/imdbNoTVDir-10Mb.xml'
# @$(MAKE) run-script xmlfiles='../examples/imdbNoTVDir-50Mb.xml'
# @$(MAKE) run-script xmlfiles='../examples/mclibrary.xml'
run-script:
time ./xpathdemo ${xmlfiles}
# time ./xpathdemo ${xmlfiles} +RTS -p
ghci:
(cd ..; $(MAKE) top=xpto/CommandLine.hs extraOpts=-ixpto ghci)
|