haddock the stage2 compiler if HADDOCK_DOCS is YES
[ghc-hetmet.git] / Makefile
index e2f24a2..2b6fcb9 100644 (file)
--- 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