From f3c529f27f03934902efaba0fdbaff92ee098d3e Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Wed, 13 Jan 2010 19:15:55 +0000 Subject: fix for HSCOLOUR_SRCS=NO --- rules/haddock.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rules') 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) \ -- cgit v1.2.1