diff options
author | Simon Marlow <marlowsd@gmail.com> | 2010-01-13 19:15:55 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2010-01-13 19:15:55 +0000 |
commit | f3c529f27f03934902efaba0fdbaff92ee098d3e (patch) | |
tree | c517112df860f47d8f1ca735f2dc6768e1b4587e /rules/haddock.mk | |
parent | ce426964baf58f76ad4681d8a26f671c10ad4f7e (diff) | |
download | haskell-f3c529f27f03934902efaba0fdbaff92ee098d3e.tar.gz |
fix for HSCOLOUR_SRCS=NO
Diffstat (limited to 'rules/haddock.mk')
-rw-r--r-- | rules/haddock.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/haddock.mk b/rules/haddock.mk index f0d0aff7aa..9303d16eb4 100644 --- a/rules/haddock.mk +++ b/rules/haddock.mk @@ -39,7 +39,9 @@ endif ifneq "$$(BINDIST)" "YES" $$($$($1_PACKAGE)-$$($1_$2_VERSION)_HADDOCK_FILE) : $$(INPLACE_BIN)/haddock$$(exeext) $$(GHC_CABAL_INPLACE) $$($1_$2_HS_SRCS) $$($$($1_PACKAGE)-$$($1_$2_VERSION)_HADDOCK_DEPS) | $$$$(dir $$$$@)/. +ifeq "$$(HSCOLOUR_SRCS)" "YES" "$$(GHC_CABAL_INPLACE)" hscolour $2 $1 +endif "$$(TOP)/$$(INPLACE_BIN)/haddock" \ --odir="$1/$2/doc/html/$$($1_PACKAGE)" \ --dump-interface=$$($$($1_PACKAGE)-$$($1_$2_VERSION)_HADDOCK_FILE) \ |