]> gitweb.michael.orlitzky.com - email-validator.git/blob - makefile
Add the test suite.
[email-validator.git] / makefile
1 BIN = dist/build/email_validator/email_validator
2 TESTSUITE_BIN = dist/build/testsuite/testsuite
3
4 .PHONY : test dist hlint
5
6 $(BIN): src/*.hs
7 runghc Setup.hs clean
8 runghc Setup.hs configure --user
9 runghc Setup.hs build
10
11 profile: src/*.hs
12 runghc Setup.hs clean
13 runghc Setup.hs configure --user --enable-executable-profiling
14 runghc Setup.hs build
15
16 clean:
17 runghc Setup.hs clean
18
19
20 $(TESTSUITE_BIN): src/*.hs test/TestSuite.hs
21 runghc Setup.hs configure --user --flags=${FLAGS} --enable-tests
22 runghc Setup.hs build
23
24 test: $(BIN) $(TESTSUITE_BIN)
25 runghc Setup.hs test
26
27 dist:
28 runghc Setup.hs configure
29 runghc Setup.hs sdist
30
31 hlint:
32 hlint --ignore="Use camelCase" \
33 --ignore="Redundant bracket" \
34 --color \
35 src