]> gitweb.michael.orlitzky.com - dead/htsn.git/blob - makefile
45ed83809f39941aee435c20c334e29027163b84
[dead/htsn.git] / makefile
1 BIN = dist/build/htsn/htsn
2 TESTSUITE_BIN = dist/build/testsuite/testsuite
3
4 .PHONY : dist hlint
5
6 $(BIN): src/*.hs
7 runghc Setup.hs clean
8 runghc Setup.hs configure --user --prefix=/
9 runghc Setup.hs build
10
11 profile: src/*.hs
12 runghc Setup.hs clean
13 runghc Setup.hs configure --user --enable-executable-profiling --prefix=/
14 runghc Setup.hs build
15
16 doc: *.cabal src/*.hs
17 runghc Setup.hs configure --user --prefix=/
18 runghc Setup.hs hscolour --executables
19 runghc Setup.hs haddock --internal \
20 --executables \
21 --hyperlink-source
22
23 clean:
24 runghc Setup.hs clean
25 rm -f *.log
26 rm -f *.xml
27 rm -rf tmp
28
29 $(TESTSUITE_BIN): src/*.hs test/TestSuite.hs
30 runghc Setup.hs configure --user --enable-tests --prefix=/
31 runghc Setup.hs build
32
33 test: $(BIN) $(TESTSUITE_BIN)
34 runghc Setup.hs test
35
36 dist:
37 runghc Setup.hs configure --prefix=/
38 runghc Setup.hs sdist
39
40 hlint:
41 hlint --ignore="Use camelCase" \
42 --ignore="Redundant bracket" \
43 --color \
44 src