]> gitweb.michael.orlitzky.com - hath.git/blob - makefile
Add an Ord instance for Cidr and use it to implement Eq.
[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 hscolour --all
15 runghc Setup.hs haddock --all\
16 --hyperlink-source \
17 --haddock-options="--ignore-all-exports"
18
19
20 #
21 # Tests
22 #
23 TESTSUITE_BIN = dist/build/testsuite/testsuite
24 TEST_SRCS := $(shell find test/ -type f -name '*.hs')
25
26 $(TESTSUITE_BIN): $(PN).cabal $(SRCS) $(TEST_SRCS)
27 runghc Setup.hs configure --user --enable-tests --prefix=/
28 runghc Setup.hs build
29
30
31 test: $(BIN) $(TESTSUITE_BIN)
32 runghc Setup.hs test
33
34
35 #
36 # Misc
37 #
38
39 clean:
40 runghc Setup.hs clean
41
42 dist:
43 runghc Setup.hs configure
44 TAR_OPTIONS="--format=ustar" runghc Setup.hs sdist
45
46 hlint:
47 hlint --ignore="Use camelCase" \
48 --ignore="Redundant bracket" \
49 --color \
50 src