summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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