From c1153c7803e311d7b6e7de454ea0156b211281c3 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sun, 20 Jul 2008 22:06:22 +0000 Subject: [PATCH] haddock the stage2 compiler if HADDOCK_DOCS is YES --- Makefile | 3 +++ compiler/Makefile | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/Makefile b/Makefile index e2f24a2..2b6fcb9 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 diff --git a/compiler/Makefile b/compiler/Makefile index 129adfc..6066385 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -44,6 +44,8 @@ boot:: boot.stage.$(stage) all:: build.stage.$(stage) +doc:: doc.stage.$(stage) + stage1 :: $(MAKE) stage=1 @@ -175,6 +177,9 @@ build.stage.%: $(MAKE) -f Makefile-stage$* stage=$* $(CABAL) register --distpref dist-stage$* --inplace +doc.stage.%: + $(CABAL) haddock --distpref dist-stage$* + # XXX We ought to actually install the (stage 2) library install: @: -- 1.7.10.4