X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fhalcyon.git;a=blobdiff_plain;f=makefile;h=00368eaae80441a0e4698fa3eb474523b566972e;hp=8bd7248952ed1c4f53cf4f2eeb92460be6c5b7b1;hb=4f1ecbb17ed0e0a9506187630374468a46179514;hpb=ea3a5b5f48baf757d5c5c2d1db64f669001185f1 diff --git a/makefile b/makefile index 8bd7248..00368ea 100644 --- a/makefile +++ b/makefile @@ -1,19 +1,35 @@ -.PHONY : doc test +BIN = dist/build/halcyon/halcyon +TESTSUITE_BIN = dist/build/testsuite/testsuite -twat: src/*.hs src/Twitter/*.hs +.PHONY : dist doc test + +$(BIN): src/*.hs src/Twitter/*.hs runghc Setup.hs clean runghc Setup.hs configure --user runghc Setup.hs build +$(TESTSUITE_BIN): src/*.hs test/TestSuite.hs + runghc Setup.hs configure --user --enable-tests + runghc Setup.hs build + clean: runghc Setup.hs clean -test: - runghc -i"src" test/TestSuite.hs +test: $(BIN) $(TESTSUITE_BIN) + runghc Setup.hs test -# Neither 'haddock' nor 'hscolour' seem to work properly. doc: runghc Setup.hs hscolour --executables runghc Setup.hs haddock --internal \ --executables \ --hyperlink-source + +hlint: + hlint --ignore="Use camelCase" \ + --ignore="Redundant bracket" \ + --color \ + src + +dist: + runghc Setup.hs configure + runghc Setup.hs sdist