summaryrefslogtreecommitdiff
path: root/rules/build-dependencies.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-07-17 00:08:00 +0000
committerIan Lynagh <igloo@earth.li>2010-07-17 00:08:00 +0000
commit2d4269af878d09edf14c3e26b5bf8d738e1d0db6 (patch)
treef5909d00fcf06bdf4a33e6c23586b640d11fd22b /rules/build-dependencies.mk
parent8d1990f4c7f0993baae3f2ac709d8b5df2f0a5b3 (diff)
downloadhaskell-2d4269af878d09edf14c3e26b5bf8d738e1d0db6.tar.gz
Don't generate Haskell dependencies if we don't have any Haskell sources
Diffstat (limited to 'rules/build-dependencies.mk')
-rw-r--r--rules/build-dependencies.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/build-dependencies.mk b/rules/build-dependencies.mk
index 6ebc7ef711..4bcd6d16db 100644
--- a/rules/build-dependencies.mk
+++ b/rules/build-dependencies.mk
@@ -67,7 +67,9 @@ endif # $1_$2_NO_BUILD_DEPS
$$($1_$2_depfile_haskell) : $$(UNLIT)
ifneq "$$(NO_INCLUDE_DEPS)" "YES"
+ifneq "$$(strip $$($1_$2_HS_SRCS) $$($1_$2_HS_BOOT_SRCS))" ""
include $$($1_$2_depfile_haskell)
+endif
include $$($1_$2_depfile_c_asm)
else
ifeq "$$(DEBUG)" "YES"