X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=7eb2938be29252502189ccc32f96128fdc55a465;hb=d32fe2f0a6c83ba3046a405eda40f83c794c000d;hp=46c4826c8ef6e1e513aeb2330b7ee0642153c02d;hpb=25b329134812bdd24945ea80544cc1f8acaeb0ed;p=hath.git diff --git a/makefile b/makefile index 46c4826..7eb2938 100644 --- 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