[commit: ghc] master: Fix "make 2" in ghc/ (157ac08)

Ian Lynagh igloo at earth.li
Sun Apr 21 15:27:48 CEST 2013


Repository : http://darcs.haskell.org/ghc.git/

On branch  : master

https://github.com/ghc/ghc/commit/157ac08b6f5bc49aa456c185dc519edd9848047b

>---------------------------------------------------------------

commit 157ac08b6f5bc49aa456c185dc519edd9848047b
Author: Ian Lynagh <ian at well-typed.com>
Date:   Sun Apr 21 13:14:10 2013 +0100

    Fix "make 2" in ghc/
    
    The ghc-stage1_INPLACE variable wasn't being defined

>---------------------------------------------------------------

 rules/build-prog.mk | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/rules/build-prog.mk b/rules/build-prog.mk
index 0f4bb49..464ed73 100644
--- a/rules/build-prog.mk
+++ b/rules/build-prog.mk
@@ -42,6 +42,8 @@ endif
 
 $(call clean-target,$1,$2,$1/$2)
 
+$$(eval $$(call build-prog-vars,$1,$2,$3))
+
 ifneq "$$($1_$2_NOT_NEEDED)" "YES"
 $$(eval $$(call build-prog-helper,$1,$2,$3))
 endif
@@ -49,7 +51,7 @@ $(call profEnd, build-prog($1,$2,$3))
 endef
 
 
-define build-prog-helper
+define build-prog-vars
 # $1 = dir
 # $2 = distdir
 # $3 = GHC stage to use (0 == bootstrapping compiler)
@@ -80,8 +82,6 @@ else
 $1_$2_WANT_INSTALLED_WRAPPER = NO
 endif
 
-$(call package-config,$1,$2,$3)
-
 $1_$2_depfile_base = $1/$2/build/.depend
 
 ifeq "$$($1_$2_INSTALL_INPLACE)" "NO"
@@ -109,6 +109,15 @@ $1_$2_INPLACE = $$($$($1_$2_PROGNAME)_INPLACE)
 endif
 endif
 
+endef
+
+define build-prog-helper
+# $1 = dir
+# $2 = distdir
+# $3 = GHC stage to use (0 == bootstrapping compiler)
+
+$(call package-config,$1,$2,$3)
+
 ifeq "$$($1_$2_USES_CABAL)" "YES"
 $(call build-package-data,$1,$2,$3)
 ifneq "$$(NO_INCLUDE_PKGDATA)" "YES"





More information about the ghc-commits mailing list