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