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 runghc Setup.hs install
23 # Neither 'haddock' nor 'hscolour' seem to work properly.
25 runghc Setup.hs hscolour --executables
26 runghc Setup.hs haddock --internal \
30 dist/build/autogen: $(BIN)
33 test: dist/build/autogen
34 runghc -i"src" -i"dist/build/autogen" test/TestSuite.hs