summaryrefslogtreecommitdiff
path: root/rules/include-dependencies.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-01-27 00:17:39 +0000
committerIan Lynagh <igloo@earth.li>2011-01-27 00:17:39 +0000
commitc1e824a275339da8fae6614f5a0db751874d0a36 (patch)
treed0ef3aa81de615dc808dd1cf2bf2450269a0798b /rules/include-dependencies.mk
parentff3bfae6010625b7ffe96bc62e8e139870684600 (diff)
downloadhaskell-c1e824a275339da8fae6614f5a0db751874d0a36.tar.gz
Fix "make 1" etc following the build system changes
The logic is now in mk/compiler-ghc.mk rather than being duplicated in ghc/Makefile and compiler/Makefile.
Diffstat (limited to 'rules/include-dependencies.mk')
-rw-r--r--rules/include-dependencies.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/rules/include-dependencies.mk b/rules/include-dependencies.mk
index b93311075f..ad1c230f4f 100644
--- a/rules/include-dependencies.mk
+++ b/rules/include-dependencies.mk
@@ -17,7 +17,17 @@ $(call profStart, include-dependencies($1,$2,$3))
# $2 = distdir
# $3 = GHC stage to use (0 == bootstrapping compiler)
-ifneq "$$(NO_INCLUDE_DEPS)" "YES"
+$1_$2_INCLUDE_DEPFILES = YES
+ifeq "$$(NO_INCLUDE_DEPS)" "YES"
+$1_$2_INCLUDE_DEPFILES = NO
+endif
+ifneq "$$(ONLY_DEPS_FOR)" ""
+ifeq "$$(filter $1_$2,$$(ONLY_DEPS_FOR))" ""
+$1_$2_INCLUDE_DEPFILES = NO
+endif
+endif
+
+ifeq "$$($1_$2_INCLUDE_DEPFILES)" "YES"
ifneq "$$(strip $$($1_$2_HS_SRCS) $$($1_$2_HS_BOOT_SRCS))" ""
ifneq "$$(NO_STAGE$3_DEPS)" "YES"
include $$($1_$2_depfile_haskell)