Fix a few hlint suggestions.
[dead/halcyon.git] / makefile
1 BIN = dist/build/twat/twat
2 TESTSUITE_BIN = dist/build/testsuite/testsuite
3
4 .PHONY : doc test
5
6 $(BIN): src/*.hs src/Twitter/*.hs
7 runghc Setup.hs clean
8 runghc Setup.hs configure --user
9 runghc Setup.hs build
10
11 $(TESTSUITE_BIN): src/*.hs test/TestSuite.hs
12 runghc Setup.hs configure --user --enable-tests
13 runghc Setup.hs build
14
15 clean:
16 runghc Setup.hs clean
17
18 test: $(BIN) $(TESTSUITE_BIN)
19 runghc Setup.hs test
20
21 # Neither 'haddock' nor 'hscolour' seem to work properly.
22 doc:
23 runghc Setup.hs hscolour --executables
24 runghc Setup.hs haddock --internal \
25 --executables \
26 --hyperlink-source
27
28 hlint:
29 hlint --ignore="Use camelCase" \
30 --ignore="Redundant bracket" \
31 --color \
32 src