$(MAKE) -C ../ghc stage=$*
doc.stage.%:
- $(CABAL) haddock --distpref dist-stage$*
+ $(CABAL) haddock --distpref dist-stage$* \
+ --haddock-option=--optghc=-DSTAGE=$* \
+ --with-haddock=$(FPTOOLS_TOP_ABS)/utils/haddock/install-inplace/bin/haddock
# XXX We ought to actually install the (stage 2) library
install:
primop-usage.hs-incl: prelude/primops.txt
$(GENPRIMOP) --usage < $< > $@
+html:
+ $(MAKE) doc stage=2
+
install-docs:
@: