Don't generate Haskell dependencies if we don't have any Haskell sources
authorIan Lynagh <igloo@earth.li>
Sat, 17 Jul 2010 00:08:00 +0000 (00:08 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 17 Jul 2010 00:08:00 +0000 (00:08 +0000)
rules/build-dependencies.mk

index 6ebc7ef..4bcd6d1 100644 (file)
@@ -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"