X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fhalcyon.git;a=blobdiff_plain;f=makefile;h=6ef9b5779c5e75b53be88d7d386e31bd16f88119;hp=abe71a3acbc7416c4048fb75885472bda361fb60;hb=4cc476a2714260980899ca5358196bbf5226b3c2;hpb=e565ae841fa735a1361712eac06cc7ae9be098dc diff --git a/makefile b/makefile index abe71a3..6ef9b57 100644 --- a/makefile +++ b/makefile @@ -1,15 +1,22 @@ +BIN = dist/build/twat/twat +TESTSUITE_BIN = dist/build/testsuite/testsuite + .PHONY : doc test -twat: src/*.hs src/Twitter/*.hs +$(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: