]> gitweb.michael.orlitzky.com - haeredes.git/blobdiff - makefile
Update code and doctests to support the new version of the dns library.
[haeredes.git] / makefile
index c04b61b790a4a0967fa619cd7c6ea7bb2fc20c3f..35241bece52f5ac5e0dbe049d2a17c7108cbe3f6 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,5 +1,6 @@
-BIN           = dist/build/haeres/haeres
+BIN           = dist/build/haeredes/haeredes
 TESTSUITE_BIN = dist/build/testsuite/testsuite
+DOCTESTS_BIN  = dist/build/doctests/doctests
 
 .PHONY : dist doc test
 
@@ -12,10 +13,16 @@ $(TESTSUITE_BIN): src/*.hs test/TestSuite.hs
        runghc Setup.hs configure --user --enable-tests
        runghc Setup.hs build
 
+$(DOCTESTS_BIN): src/*.hs test/Doctests.hs
+       runghc Setup.hs configure --user --enable-tests
+       runghc Setup.hs build
+
 clean:
        runghc Setup.hs clean
+       rm -f src/*.hi
+       rm -f src/*.o
 
-test: $(BIN) $(TESTSUITE_BIN)
+test: $(BIN) $(TESTSUITE_BIN) $(DOCTESTS_BIN)
        runghc Setup.hs test
 
 doc: