a5901870355a7dcede840d2224c2315eb1b06188
[haeredes.git] / makefile
1 BIN = dist/build/haeredes/haeredes
2 TESTSUITE_BIN = dist/build/testsuite/testsuite
3
4 .PHONY : dist doc test
5
6 $(BIN): src/*.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 doc:
22 runghc Setup.hs hscolour --executables
23 runghc Setup.hs haddock --internal \
24 --executables \
25 --hyperlink-source
26
27 hlint:
28 hlint --ignore="Use camelCase" \
29 --ignore="Redundant bracket" \
30 --color \
31 src
32
33 dist:
34 runghc Setup.hs configure
35 runghc Setup.hs sdist