.PHONY : test publish_doc doc src_html hlint # There's onlt one '$' in the awk script, but we have to double-money # it for make. PN := $(shell grep 'name:' *.cabal | awk '{ print $$2 }') BIN := dist/build/$(PN)/$(PN) $(BIN): src/*.hs runghc Setup.hs clean runghc Setup.hs configure --user --flags=${FLAGS} runghc Setup.hs build clean: runghc Setup.hs clean rm -f dist/ rm -f *.prof rm -rf .hpc # Neither 'haddock' nor 'hscolour' seem to work properly. doc: src_html runghc Setup.hs hscolour --executables runghc Setup.hs haddock --internal \ --executables \ --hyperlink-source dist/build/autogen: $(BIN) test: dist/build/autogen runghc -i"src" -i"dist/build/autogen" test/TestSuite.hs