]> gitweb.michael.orlitzky.com - dead/htsn.git/blob - makefile
Bump to v0.1.1 and allow >= network-2.6.
[dead/htsn.git] / makefile
1 PN = htsn
2 BIN = dist/build/$(PN)/$(PN)
3 TESTSUITE_BIN = dist/build/testsuite/testsuite
4 SRCS := $(shell find src/ -type f -name '*.hs')
5 TEST_SRCS := $(shell find test/ -type f -name '*.hs')
6
7 .PHONY : dist doc hlint
8
9 $(BIN): $(PN).cabal $(SRCS)
10 runghc Setup.hs clean
11 runghc Setup.hs configure --user --prefix=/
12 runghc Setup.hs build
13
14 profile: $(PN).cabal $(SRCS)
15 runghc Setup.hs clean
16 runghc Setup.hs configure --user \
17 --enable-executable-profiling \
18 --prefix=/
19 runghc Setup.hs build
20
21 doc:
22 runghc Setup.hs configure --user --prefix=/
23 runghc Setup.hs hscolour --all
24 runghc Setup.hs haddock --all \
25 --hyperlink-source \
26 --haddock-options="--ignore-all-exports"
27
28 clean:
29 runghc Setup.hs clean
30 rm -f *.log
31 rm -f *.xml
32 rm -rf tmp
33
34 $(TESTSUITE_BIN): $(PN).cabal $(SRCS) $(TEST_SRCS)
35 runghc Setup.hs configure --user --enable-tests --prefix=/
36 runghc Setup.hs build
37
38 test: $(BIN) $(TESTSUITE_BIN)
39 runghc Setup.hs test
40
41 dist:
42 runghc Setup.hs configure --prefix=/
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