]> gitweb.michael.orlitzky.com - hath.git/blobdiff - makefile
Use test-framework for the tests, and bump some dependencies.
[hath.git] / makefile
index 46c4826c8ef6e1e513aeb2330b7ee0642153c02d..7eb2938be29252502189ccc32f96128fdc55a465 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,15 +1,17 @@
-BIN=hath
+.PHONY : test
 
-all: $(BIN)
-
-$(BIN): src/*.hs
-       ghc -O2 -Wall --make -o bin/${BIN} src/*.hs
+hath: src/*.hs
+       runghc Setup.hs clean
+       runghc Setup.hs configure --user
+       runghc Setup.hs build
 
 profile: src/*.hs
-       ghc -O2 -Wall -prof -auto-all --make -o bin/$(BIN) src/*.hs
+       runghc Setup.hs clean
+       runghc Setup.hs configure --user --enable-executable-profiling
+       runghc Setup.hs build
 
 clean:
-       rm -f bin/$(BIN)
-       rm -f src/*.hi
-       rm -f src/*.o
-       rm -f *.prof
+       runghc Setup.hs clean
+
+test:
+       runghc -i"src" test/TestSuite.hs