From: Michael Orlitzky Date: Tue, 28 Sep 2010 22:30:10 +0000 (-0400) Subject: Add a makefile target for the Haddock documentation. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=ca8ae43507a63fff607ae69c06fbc1a90109ecbe;p=dead%2Fhalcyon.git Add a makefile target for the Haddock documentation. --- diff --git a/makefile b/makefile index da88076..1c36e61 100644 --- 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