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 -a -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 -H20m -M20m ghci: XQueryParser.hs ghci -fth -i$(hxml) XQuery.hs profile: XQueryParser.hs ghc -O2 -i$(hxml) -prof -auto-all --make profile.hs -o a ./a +RTS -hy -p -H20m hp2ps -color a.hp cabal: clean XQueryParser.hs runhaskell Setup.lhs configure --prefix=$(HOME) runhaskell Setup.lhs build runhaskell Setup.lhs sdist clean: /bin/rm -f *~ data/*~ *.o *.hi $(hxml)/*.o $(hxml)/*.hi XQueryParser.hs *.stat *.prof *.ps *.aux *.hp xquery test1 test2 Temp.hs a.out a