Add GmpDerivedConstants.h dependencies for all ways, not just vanilla
authorIan Lynagh <igloo@earth.li>
Sat, 18 Jul 2009 14:56:28 +0000 (14:56 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 18 Jul 2009 14:56:28 +0000 (14:56 +0000)
gmp/ghc.mk

index 08e6747..6c32e29 100644 (file)
@@ -45,8 +45,12 @@ HaveFrameworkGMP = NO
 endif
 endif
 
-$(libraries/integer-gmp_dist-install_v_CMM_OBJS): libraries/integer-gmp/cbits/GmpDerivedConstants.h
-$(libraries/integer-gmp_dist-install_v_C_OBJS):   libraries/integer-gmp/cbits/GmpDerivedConstants.h
+define GmpDerivedConstants-dependencies # args: $1 = way
+$$(libraries/integer-gmp_dist-install_$1_CMM_OBJS): libraries/integer-gmp/cbits/GmpDerivedConstants.h
+$$(libraries/integer-gmp_dist-install_$1_C_OBJS):   libraries/integer-gmp/cbits/GmpDerivedConstants.h
+endef
+
+$(foreach w,$(GhcLibWays),$(eval $(call GmpDerivedConstants-dependencies,$w)))
 
 ifneq "$(HaveLibGmp)" "YES"
 ifneq "$(HaveFrameworkGMP)" "YES"