summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-07-20 22:06:22 +0000
committerIan Lynagh <igloo@earth.li>2008-07-20 22:06:22 +0000
commitc1153c7803e311d7b6e7de454ea0156b211281c3 (patch)
tree3050e05de968d9a53f0e678f9fd78bb52ea5c1ee /Makefile
parent90c32262025049ae3013e8af1e9960756dace72d (diff)
downloadhaskell-c1153c7803e311d7b6e7de454ea0156b211281c3.tar.gz
haddock the stage2 compiler if HADDOCK_DOCS is YES
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e2f24a2709..2b6fcb9c7d 100644
--- a/Makefile
+++ b/Makefile
@@ -148,6 +148,9 @@ stage1 : $(GCC_LIB_DEP) check-all
stage2 : check-all
$(MAKE) -C compiler stage=2 boot
$(MAKE) -C compiler stage=2
+ifeq "$(HADDOCK_DOCS)" "YES"
+ $(MAKE) -C compiler stage=2 doc
+endif
$(MAKE) -C ghc stage=2 boot
$(MAKE) -C ghc stage=2