summaryrefslogtreecommitdiff
path: root/ghc/Makefile
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-08-17 11:42:02 +0000
committerIan Lynagh <igloo@earth.li>2008-08-17 11:42:02 +0000
commit06781a444251b6aabfd9079f85ebcfa794f9db23 (patch)
treefdcc4e267adbac176fa897fc2460e54b2fd60170 /ghc/Makefile
parentcf690bef85f23a001d110daad26b11057f58d8fc (diff)
downloadhaskell-06781a444251b6aabfd9079f85ebcfa794f9db23.tar.gz
When making in compiler/, automatically make in ghc/ when we are done
Diffstat (limited to 'ghc/Makefile')
-rw-r--r--ghc/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/ghc/Makefile b/ghc/Makefile
index 5eff4daea8..9d5ded7c99 100644
--- a/ghc/Makefile
+++ b/ghc/Makefile
@@ -89,6 +89,8 @@ TOUCH_MAIN = $(RM) dist-stage1/build/ghc/ghc-tmp/Main.o
endif
endif
+dist-stage%: boot.stage.%
+
boot.stage.%:
$(CABAL) configure --distpref dist-stage$* \
$(INSTALL_DIRS_CONFIGURE_FLAGS) \
@@ -98,7 +100,7 @@ boot.stage.%:
--datadir='$$libdir' \
--datasubdir=.
-build.stage.%:
+build.stage.%: dist-stage%
$(TOUCH_MAIN)
$(CABAL) build --distpref dist-stage$* $(BUILD_FLAGS)
$(INSTALL_PACKAGE) install '$(GHC_PKG_PROG)' 'XXX/package.conf' "" \