]> gitweb.michael.orlitzky.com - email-validator.git/blob - makefile
email-validator.cabal, makefile: remove old, untested profiling options.
[email-validator.git] / makefile
1 PN = email-validator
2 BIN = dist/build/$(PN)/$(PN)
3 TESTSUITE_BIN = dist/build/testsuite/testsuite
4
5 .PHONY : test dist hlint
6
7 $(BIN): $(PN).cabal src/*.hs
8 runghc Setup.hs clean
9 runghc Setup.hs configure --user
10 runghc Setup.hs build
11
12 doc: src/*.hs
13 runghc Setup.hs configure --user
14 runghc Setup.hs hscolour --all
15 runghc Setup.hs haddock --all \
16 --hyperlink-source \
17 --haddock-options="--ignore-all-exports"
18
19 clean:
20 runghc Setup.hs clean
21
22
23 $(TESTSUITE_BIN): $(PN).cabal src/*.hs test/*.hs
24 runghc Setup.hs configure --user --enable-tests
25 runghc Setup.hs build
26
27 test: $(BIN) $(TESTSUITE_BIN)
28 runghc Setup.hs test
29
30 dist:
31 runghc Setup.hs configure
32 runghc Setup.hs sdist
33
34 hlint:
35 hlint --ignore="Use camelCase" \
36 --ignore="Redundant bracket" \
37 --color \
38 src