haddock the stage2 compiler if HADDOCK_DOCS is YES
[ghc-hetmet.git] / compiler / Makefile
index 129adfc..6066385 100644 (file)
@@ -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:
        @: