X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=50dda0fb4fc5a7c639a07373f0a35620d48e2855;hb=b30aa6a3d9163c4fad3b5200cb2fe552fd709d46;hp=b2265f8b28c3351ab088bceea2b6c3a1204c251c;hpb=3c4efe66ab7cb5f528c5a711976ca7c8e56213cf;p=hath.git diff --git a/makefile b/makefile index b2265f8..50dda0f 100644 --- a/makefile +++ b/makefile @@ -1,20 +1,21 @@ -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 + +dist: + runghc Setup.hs configure + runghc Setup.hs sdist