]> gitweb.michael.orlitzky.com - hath.git/blob - makefile
makefile: remove "hscolour" from the docs build.
[hath.git] / makefile
1 PN = hath
2 BIN = dist/build/$(PN)/$(PN)
3 SRCS = $(shell find src/ -type f -name '*.hs')
4
5
6 .PHONY : dist hlint
7
8 $(BIN): $(PN).cabal $(SRCS)
9 runghc Setup.hs configure --user
10 runghc Setup.hs build
11
12
13 doc: $(PN).cabal $(SRCS)
14 runghc Setup.hs haddock --all \
15 --hyperlink-source \
16 --haddock-options="--ignore-all-exports"
17
18
19 #
20 # Tests
21 #
22 TESTSUITE_BIN = dist/build/testsuite/testsuite
23 TEST_SRCS := $(shell find test/ -type f -name '*.hs')
24
25 $(TESTSUITE_BIN): $(PN).cabal $(SRCS) $(TEST_SRCS)
26 runghc Setup.hs configure --user --enable-tests --prefix=/
27 runghc Setup.hs build
28
29
30 test: $(BIN) $(TESTSUITE_BIN)
31 runghc Setup.hs test
32
33
34 #
35 # Misc
36 #
37
38 clean:
39 runghc Setup.hs clean
40
41 dist:
42 runghc Setup.hs configure
43 TAR_OPTIONS="--format=ustar" runghc Setup.hs sdist
44
45 hlint:
46 hlint --ignore="Use camelCase" \
47 --ignore="Redundant bracket" \
48 --color \
49 src