]> gitweb.michael.orlitzky.com - hath.git/blob - makefile
2d46895cc0c020349e2e9a5d55b2dcb6a330fc5b
[hath.git] / makefile
1 BIN = dist/build/hath/hath
2 TESTSUITE_BIN = dist/build/testsuite/testsuite
3
4 .PHONY : test
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