]> gitweb.michael.orlitzky.com - dead/halcyon.git/blobdiff - makefile
Add a 'dist' makefile target.
[dead/halcyon.git] / makefile
index 6ef9b5779c5e75b53be88d7d386e31bd16f88119..986de5c65e6fc0f1f92a71bf8353c8596516699c 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,7 +1,7 @@
 BIN           = dist/build/twat/twat
 TESTSUITE_BIN = dist/build/testsuite/testsuite
 
-.PHONY : doc test
+.PHONY : dist doc test
 
 $(BIN): src/*.hs src/Twitter/*.hs
        runghc Setup.hs clean
@@ -18,7 +18,6 @@ clean:
 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    \
@@ -30,3 +29,7 @@ hlint:
              --ignore="Redundant bracket" \
              --color                      \
              src
+
+dist:
+       runghc Setup.hs configure
+       runghc Setup.hs sdist