]> gitweb.michael.orlitzky.com - dead/htsn.git/blob - makefile
Move the Report, Logging, and Terminal modules into their own namespace.
[dead/htsn.git] / makefile
1 BIN = dist/build/htsn/htsn
2 TESTSUITE_BIN = dist/build/testsuite/testsuite
3 SRCS := $(shell find src/ -type f -name '*.hs')
4 TEST_SRCS := $(shell find test/ -type f -name '*.hs')
5
6 .PHONY : dist hlint
7
8 $(BIN): $(SRCS)
9 runghc Setup.hs clean
10 runghc Setup.hs configure --user --prefix=/
11 runghc Setup.hs build
12
13 profile: $(SRCS)
14 runghc Setup.hs clean
15 runghc Setup.hs configure --user \
16 --enable-executable-profiling \
17 --prefix=/
18 runghc Setup.hs build
19
20 doc: *.cabal $(SRCS)
21 runghc Setup.hs configure --user --prefix=/
22 runghc Setup.hs hscolour --executables
23 runghc Setup.hs haddock --internal \
24 --executables \
25 --hyperlink-source
26
27 clean:
28 runghc Setup.hs clean
29 rm -f *.log
30 rm -f *.xml
31 rm -rf tmp
32
33 $(TESTSUITE_BIN): $(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