]> gitweb.michael.orlitzky.com - dead/htsn-import.git/blob - makefile
Move the XML modules into the XML subdirectory.
[dead/htsn-import.git] / makefile
1 PN = htsn-import
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 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 --enable-executable-profiling --prefix=/
17 runghc Setup.hs build
18
19 doc: $(PN).cabal $(SRCS)
20 runghc Setup.hs configure --user --prefix=/
21 runghc Setup.hs hscolour --executables
22 runghc Setup.hs haddock --internal \
23 --executables \
24 --hyperlink-source
25
26 clean:
27 runghc Setup.hs clean
28 rm -f *.log
29 rm -f *.xml
30 rm -rf tmp
31
32 $(TESTSUITE_BIN): $(PN).cabal $(SRCS) $(TEST_SRCS)
33 runghc Setup.hs configure --user --enable-tests --prefix=/
34 runghc Setup.hs build
35
36 test: $(BIN) $(TESTSUITE_BIN)
37 runghc Setup.hs test
38
39 dist:
40 runghc Setup.hs configure --prefix=/
41 runghc Setup.hs sdist
42
43 hlint:
44 hlint --ignore="Use camelCase" \
45 --ignore="Redundant bracket" \
46 --color \
47 src