+BIN = dist/build/spline3/spline3
+DOCTESTS_BIN = dist/build/doctests/doctests
+TESTSUITE_BIN = dist/build/testsuite/testsuite
+
.PHONY : test publish_doc doc src_html hlint
-spline3: src/*.hs
+$(BIN): src/*.hs
runghc Setup.hs clean
runghc Setup.hs configure --user --flags=${FLAGS}
runghc Setup.hs build
+$(DOCTESTS_BIN): src/*.hs test/Doctests.hs
+ runghc Setup.hs configure --user --flags=${FLAGS} --enable-tests
+ runghc Setup.hs build
+
+$(TESTSUITE_BIN): src/*.hs test/TestSuite.hs
+ runghc Setup.hs configure --user --flags=${FLAGS} --enable-tests
+ runghc Setup.hs build
+
llvm: src/*.hs
FLAGS="llvm" make
rm -f *.prof
rm -rf .hpc
-test:
- runghc -i"src" test/TestSuite.hs
+test: $(BIN) $(DOCTESTS_BIN) $(TESTSUITE_BIN)
+ runghc Setup.hs test
src_html:
util/hscolour_srcs