1 # There's only one '$' in the awk script, but we have to double-money
3 PN = $(shell grep 'name:' *.cabal | awk '{ print $$2 }')
4 BIN = dist/build/$(PN)/$(PN)
5 DOCTESTS_BIN = dist/build/doctests/doctests
6 SRCS = $(shell find src/ -name '*.hs')
8 .PHONY : test publish_doc doc dist hlint
12 runghc Setup.hs configure --user --flags=${FLAGS}
15 $(DOCTESTS_BIN): $(SRCS) test/Doctests.hs
16 runghc Setup.hs configure --user --flags=${FLAGS} --enable-tests
21 runghc Setup.hs configure --user --enable-executable-profiling
34 test: $(BIN) $(DOCTESTS_BIN)
38 runghc Setup.hs configure
43 runghc Setup.hs configure --user --flags=${FLAGS}
44 runghc Setup.hs hscolour --executables
45 runghc Setup.hs haddock --internal \
50 hlint --ignore="Use camelCase" \
51 --ignore="Redundant bracket" \