X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=276c5123cf4c976f19c330bd0707390ee76b1c3f;hb=3c9316fed6fd100be9a5e1f8d72db6534fb163cd;hp=7eb2938be29252502189ccc32f96128fdc55a465;hpb=041d33c0e5ac9c0e9733f42cd96aa2fba07a043f;p=hath.git diff --git a/makefile b/makefile index 7eb2938..276c512 100644 --- a/makefile +++ b/makefile @@ -1,6 +1,9 @@ -.PHONY : test +BIN = dist/build/hath/hath +TESTSUITE_BIN = dist/build/testsuite/testsuite -hath: src/*.hs +.PHONY : test dist hlint + +$(BIN): src/*.hs runghc Setup.hs clean runghc Setup.hs configure --user runghc Setup.hs build @@ -10,8 +13,30 @@ profile: src/*.hs runghc Setup.hs configure --user --enable-executable-profiling runghc Setup.hs build +doc: src/*.hs + runghc Setup.hs configure --user + runghc Setup.hs hscolour --executables + runghc Setup.hs haddock --internal \ + --executables \ + --hyperlink-source + clean: runghc Setup.hs clean -test: - runghc -i"src" test/TestSuite.hs + +$(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 + +hlint: + hlint --ignore="Use camelCase" \ + --ignore="Redundant bracket" \ + --color \ + src