]> gitweb.michael.orlitzky.com - dead/halcyon.git/commitdiff
Add a makefile target for the Haddock documentation.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 28 Sep 2010 22:30:10 +0000 (18:30 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 28 Sep 2010 22:30:10 +0000 (18:30 -0400)
makefile

index da8807630f2643dfeadcebd923d05ed5d63b6a45..1c36e613b9738757f77047a6e97d982378c4f8c2 100644 (file)
--- a/makefile
+++ b/makefile
@@ -7,7 +7,7 @@ GHC_WARNINGS += -fwarn-type-defaults
 
 BIN=bin/twat
 
-.PHONY : test
+.PHONY : doc test
 
 all: $(BIN)
 
@@ -27,3 +27,13 @@ clean:
 
 test:
        runghc -i"src" test/TestSuite.hs
+
+doc:
+       haddock -i /usr/share/doc/haxml-1.13.2/html/HaXml.haddock \
+               -i /usr/share/doc/ghc-6.8.2/libraries/base/base.haddock \
+               -i /usr/share/doc/curl-1.3.5/html/curl.haddock \
+               -i /usr/share/doc/regex-compat-0.71.0.1/html/regex-compat.haddock \
+               -i /usr/share/doc/ghc-6.8.2/libraries/process/process.haddock \
+               -h \
+               -o doc/ \
+               src/*.hs src/Twitter/*.hs