1 .PHONY : test publish_doc doc src_html hlint
3 # There's onlt one '$' in the awk script, but we have to double-money
5 PN = $(shell grep 'name:' *.cabal | awk '{ print $$2 }')
6 BIN = dist/build/$(PN)/$(PN)
7 SRCS = $(shell find src/ -name '*.hs')
11 runghc Setup.hs configure --user --flags=${FLAGS}
21 # Neither 'haddock' nor 'hscolour' seem to work properly.
23 runghc Setup.hs hscolour --executables
24 runghc Setup.hs haddock --internal \
28 dist/build/autogen: $(BIN)
31 test: dist/build/autogen
32 runghc -i"src" -i"dist/build/autogen" test/TestSuite.hs