packages feed

HXQ-0.7: Makefile

hxml = hxml-0.2
options = -O2

xquery: XQueryParser.hs XQueryCompiler.hs XQueryInterpreter.hs XQuery.hs Main.hs
	ghc $(options) -i$(hxml) --make Main.hs -o xquery

XQueryParser.hs: XQueryParser.y
	happy -g -c XQueryParser.y

test1:	XQueryParser.hs
	ghc $(options) -i$(hxml) --make Test1.hs -o test1
	./test1

test2:	XQueryParser.hs
	ghc $(options) -i$(hxml) --make Test2.hs -o test2
	time ./test2 +RTS -H128m

ghci:   XQueryParser.hs
	ghci -fth -i$(hxml) XQuery.hs

cabal:	clean XQueryParser.hs
	runhaskell Setup.lhs configure --prefix=$HOME
	runhaskell Setup.lhs build
	runhaskell Setup.lhs sdist

clean:
	/bin/rm -f *~ *.o *.hi $(hxml)/*.o $(hxml)/*.hi XQueryParser.hs *.stat *.prof *.ps *.aux *.hp xquery test1 test2 Temp.hs a.out