Invoke Haddock directly from the build system, instead of via Cabal
authorSimon Marlow <marlowsd@gmail.com>
Tue, 12 Jan 2010 22:55:48 +0000 (22:55 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 12 Jan 2010 22:55:48 +0000 (22:55 +0000)
commita4bef988fe1fcc2f6e59d9f8ccb54bcbc893958e
treedcadfb4255dbc9c549f9b419aa14c6813e086b6c
parenta21998556af1e827b9462d2cdc46005e90fb7fd2
Invoke Haddock directly from the build system, instead of via Cabal

Partly this is cleaner as we only have to preprocess the source files
once, but also it is necessary to avoid Haddock recompiling source
files when Template Haskell is in use, saving some time in validate
and fixing a problem whereby when HADDOCK_DOCS=YES, make always
re-haddocks the DPH packages.  This also needs an additional fix to
GHC.

HsColour support still uses Cabal, and hence preprocesses the source
files again. We could move this into the build system too, but there
is a version dependency that would mean adding extra autoconf stuff.
compiler/ghc.mk
ghc.mk
rules/haddock.mk
utils/ghc-cabal/ghc-cabal.hs