]> gitweb.michael.orlitzky.com - dead/htsn-import.git/blob - makefile
Initial commit, proof-of-concept with Persistent and HXT.
[dead/htsn-import.git] / makefile
1 PN = htsn-rdbms-import
2 BIN = dist/build/$(PN)/$(PN)
3 TESTSUITE_BIN = dist/build/testsuite/testsuite
4
5 .PHONY : dist hlint
6
7 $(BIN): $(PN).cabal src/*.hs src/TSN/*.hs
8 runghc Setup.hs clean
9 runghc Setup.hs configure --user --prefix=/
10 runghc Setup.hs build
11
12 profile: $(PN).cabal src/*.hs src/TSN/*.hs
13 runghc Setup.hs clean
14 runghc Setup.hs configure --user --enable-executable-profiling --prefix=/
15 runghc Setup.hs build
16
17 doc: $(PN).cabal src/*.hs src/TSN/*.hs
18 runghc Setup.hs configure --user --prefix=/
19 runghc Setup.hs hscolour --executables
20 runghc Setup.hs haddock --internal \
21 --executables \
22 --hyperlink-source
23
24 clean:
25 runghc Setup.hs clean
26 rm -f *.log
27 rm -f *.xml
28 rm -rf tmp
29
30 $(TESTSUITE_BIN): $(PN).cabal src/*.hs test/TestSuite.hs
31 runghc Setup.hs configure --user --enable-tests --prefix=/
32 runghc Setup.hs build
33
34 test: $(BIN) $(TESTSUITE_BIN)
35 runghc Setup.hs test
36
37 dist:
38 runghc Setup.hs configure --prefix=/
39 runghc Setup.hs sdist
40
41 hlint:
42 hlint --ignore="Use camelCase" \
43 --ignore="Redundant bracket" \
44 --color \
45 src