]> gitweb.michael.orlitzky.com - hath.git/blobdiff - makefile
PHONY the dist make target.
[hath.git] / makefile
index 2d46895cc0c020349e2e9a5d55b2dcb6a330fc5b..2061f444e91d607cb8ef8f8d5bb98c66422dd353 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,7 +1,7 @@
 BIN           = dist/build/hath/hath
 TESTSUITE_BIN = dist/build/testsuite/testsuite
 
-.PHONY : test
+.PHONY : test dist
 
 $(BIN): src/*.hs
        runghc Setup.hs clean
@@ -13,6 +13,13 @@ 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