hxml = hxml-0.2 options = -O runopt = +RTS -S -RTS xquery: XQueryParser.hs XQuery.hs Main.hs ghc $(options) -i$(hxml) --make Main.hs -o xquery XQueryParser.hs: XQueryParser.y happy -g -c XQueryParser.y run: xquery ./xquery $(runopt) test: XQueryParser.hs ghci -fth -i$(hxml) XQuery.hs XQueryParser.hs clean: /bin/rm -f *~ *.o *.hi $(hxml)/*.o $(hxml)/*.hi XQueryParser.hs *.stat *.prof *.ps *.aux *.hp xquery