]> gitweb.michael.orlitzky.com - dead/htsn.git/blob - makefile
Minor documentation fixes; create all (even internal) docs with `make doc`.
[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 --haddock-options="--ignore-all-exports"
26
27 clean:
28 runghc Setup.hs clean
29 rm -f *.log
30 rm -f *.xml
31 rm -rf tmp
32
33 $(TESTSUITE_BIN): $(PN).cabal $(SRCS) $(TEST_SRCS)
34 runghc Setup.hs configure --user --enable-tests --prefix=/
35 runghc Setup.hs build
36
37 test: $(BIN) $(TESTSUITE_BIN)
38 runghc Setup.hs test
39
40 dist:
41 runghc Setup.hs configure --prefix=/
42 runghc Setup.hs sdist
43
44 hlint:
45 hlint --ignore="Use camelCase" \
46 --ignore="Redundant bracket" \
47 --color \
48 src