X-Git-Url: http://gitweb.michael.orlitzky.com/?p=hath.git;a=blobdiff_plain;f=makefile;h=5d42778f0942b95ef9a0266ed324f43ba470eadb;hp=2d46895cc0c020349e2e9a5d55b2dcb6a330fc5b;hb=7622c66d1bb0592ae6cd5b9c6092ff2e0490c4a1;hpb=909e781852e3566fcaa16e156437ebe5bfc89e02 diff --git a/makefile b/makefile index 2d46895..5d42778 100644 --- a/makefile +++ b/makefile @@ -1,7 +1,7 @@ BIN = dist/build/hath/hath TESTSUITE_BIN = dist/build/testsuite/testsuite -.PHONY : test +.PHONY : test dist hlint $(BIN): src/*.hs runghc Setup.hs clean @@ -13,12 +13,19 @@ 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 $(TESTSUITE_BIN): src/*.hs test/TestSuite.hs - runghc Setup.hs configure --user --flags=${FLAGS} --enable-tests + runghc Setup.hs configure --user --enable-tests runghc Setup.hs build test: $(BIN) $(TESTSUITE_BIN) @@ -27,3 +34,9 @@ test: $(BIN) $(TESTSUITE_BIN) dist: runghc Setup.hs configure runghc Setup.hs sdist + +hlint: + hlint --ignore="Use camelCase" \ + --ignore="Redundant bracket" \ + --color \ + src