diff options
author | Ian Lynagh <igloo@earth.li> | 2009-03-05 13:27:23 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2009-03-05 13:27:23 +0000 |
commit | c54391d98a59a35a8fe10225ddfe528094a82033 (patch) | |
tree | c6e6a1b4f59eaced107cee8517fb1651f2f13a89 /mk | |
parent | ac38ece1e717cb412e89354aa95fd11d44c1cefb (diff) | |
download | haskell-c54391d98a59a35a8fe10225ddfe528094a82033.tar.gz |
By default, only HsColour the docs if we find HsColour. Fixes trac #3004.
If you manually set HSCOLOUR_SRCS=YES then the build will fail if
HsColour wasn't found.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/config.mk.in | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in index 5bcd5f9796..6f16dd56e0 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -185,11 +185,6 @@ BootingFromUnregisterisedHc = @BootingFromUnregisterisedHc@ # XMLDocWays= -# Should we build haddock docs? -HADDOCK_DOCS = YES -# And HsColour the sources? -HSCOLOUR_SRCS = YES - # Should we build latex docs? LATEX_DOCS = NO @@ -1192,6 +1187,15 @@ ALEX_VERSION = @AlexVersion@ # GHC_ALEX_OPTS = -g +# Should we build haddock docs? +HADDOCK_DOCS = YES +# And HsColour the sources? +ifeq "$(HSCOLOUR)" "" +HSCOLOUR_SRCS = NO +else +HSCOLOUR_SRCS = YES +endif + # # Options for compiling in different `ways'. # |