]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - makefile
Remove the test-framework-doctest dependency.
[spline3.git] / makefile
index 236c495dc7f61abb94bd803e481972f436b1e6be..78bf454cac68b6c2bec8f11b8863a224c8f9cd75 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,10 +1,22 @@
+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
 
@@ -21,8 +33,8 @@ clean:
        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