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
all:: build.stage.$(stage)
+doc:: doc.stage.$(stage)
+
stage1 ::
$(MAKE) stage=1
$(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:
@: