]> gitweb.michael.orlitzky.com - email-validator.git/blob - makefile
Minor makefile cleanups.
[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 profile: $(PN).cabal src/*.hs
13 runghc Setup.hs clean
14 runghc Setup.hs configure --user --enable-executable-profiling
15 runghc Setup.hs build
16
17 doc: src/*.hs
18 runghc Setup.hs configure --user
19 runghc Setup.hs hscolour --all
20 runghc Setup.hs haddock --all \
21 --hyperlink-source \
22 --haddock-options="--ignore-all-exports"
23
24 clean:
25 runghc Setup.hs clean
26
27
28 $(TESTSUITE_BIN): $(PN).cabal src/*.hs test/*.hs
29 runghc Setup.hs configure --user --enable-tests
30 runghc Setup.hs build
31
32 test: $(BIN) $(TESTSUITE_BIN)
33 runghc Setup.hs test
34
35 dist:
36 runghc Setup.hs configure
37 runghc Setup.hs sdist
38
39 hlint:
40 hlint --ignore="Use camelCase" \
41 --ignore="Redundant bracket" \
42 --color \
43 src