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 TESTSUITE_BIN = dist/build/testsuite/testsuite
8 SRCS = $(shell find src/ -name '*.hs')
12 runghc Setup.hs configure --user --flags=${FLAGS}
15 $(TESTSUITE_BIN): src/*.hs test/TestSuite.hs
16 runghc Setup.hs configure --user --flags=${FLAGS} --enable-tests
26 runghc Setup.hs install
28 # Neither 'haddock' nor 'hscolour' seem to work properly.
30 runghc Setup.hs hscolour --executables
31 runghc Setup.hs haddock --internal \
35 test: $(BIN) $(TESTSUITE_BIN)