X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=2d46895cc0c020349e2e9a5d55b2dcb6a330fc5b;hb=909e781852e3566fcaa16e156437ebe5bfc89e02;hp=46c4826c8ef6e1e513aeb2330b7ee0642153c02d;hpb=25b329134812bdd24945ea80544cc1f8acaeb0ed;p=hath.git diff --git a/makefile b/makefile index 46c4826..2d46895 100644 --- a/makefile +++ b/makefile @@ -1,15 +1,29 @@ -BIN=hath +BIN = dist/build/hath/hath +TESTSUITE_BIN = dist/build/testsuite/testsuite -all: $(BIN) +.PHONY : test $(BIN): src/*.hs - ghc -O2 -Wall --make -o bin/${BIN} 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 + + +$(TESTSUITE_BIN): src/*.hs test/TestSuite.hs + runghc Setup.hs configure --user --flags=${FLAGS} --enable-tests + runghc Setup.hs build + +test: $(BIN) $(TESTSUITE_BIN) + runghc Setup.hs test + +dist: + runghc Setup.hs configure + runghc Setup.hs sdist