summaryrefslogtreecommitdiff
path: root/compiler/Makefile
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-07-20 22:06:22 +0000
committerIan Lynagh <igloo@earth.li>2008-07-20 22:06:22 +0000
commitc1153c7803e311d7b6e7de454ea0156b211281c3 (patch)
tree3050e05de968d9a53f0e678f9fd78bb52ea5c1ee /compiler/Makefile
parent90c32262025049ae3013e8af1e9960756dace72d (diff)
downloadhaskell-c1153c7803e311d7b6e7de454ea0156b211281c3.tar.gz
haddock the stage2 compiler if HADDOCK_DOCS is YES
Diffstat (limited to 'compiler/Makefile')
-rw-r--r--compiler/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/Makefile b/compiler/Makefile
index 129adfc4d5..60663852ff 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:
@: