From ca8ae43507a63fff607ae69c06fbc1a90109ecbe Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 28 Sep 2010 18:30:10 -0400 Subject: [PATCH] Add a makefile target for the Haddock documentation. --- makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 -- 2.44.2