]> gitweb.michael.orlitzky.com - hath.git/blob - makefile
Bump dns dependency to 1.*, and update DNS module.
[hath.git] / makefile
1 BIN = dist/build/hath/hath
2 TESTSUITE_BIN = dist/build/testsuite/testsuite
3
4 .PHONY : test dist hlint
5
6 $(BIN): src/*.hs
7 runghc Setup.hs clean
8 runghc Setup.hs configure --user
9 runghc Setup.hs build
10
11 profile: src/*.hs
12 runghc Setup.hs clean
13 runghc Setup.hs configure --user --enable-executable-profiling
14 runghc Setup.hs build
15
16 doc: src/*.hs
17 runghc Setup.hs configure --user
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
26
27 $(TESTSUITE_BIN): src/*.hs test/TestSuite.hs
28 runghc Setup.hs configure --user --enable-tests
29 runghc Setup.hs build
30
31 test: $(BIN) $(TESTSUITE_BIN)
32 runghc Setup.hs test
33
34 dist:
35 runghc Setup.hs configure
36 runghc Setup.hs sdist
37
38 hlint:
39 hlint --ignore="Use camelCase" \
40 --ignore="Redundant bracket" \
41 --color \
42 src