Slightly simplify make logic
authorChris Lattner <sabre@nondot.org>
Fri, 29 Aug 2003 14:07:02 +0000 (14:07 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 29 Aug 2003 14:07:02 +0000 (14:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8211 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.common
Makefile.rules

index f002d0af06587c08827085001af5e8beda9a6a16..45a25edb0ab4916908277737a97eaa8b75928a5d 100644 (file)
@@ -843,9 +843,7 @@ $(BUILD_OBJ_DIR)/Depend/%.d: $(SourceDir)%.c $(BUILD_OBJ_DIR)/Depend/.dir
 #
 ifneq ($(MAKECMDGOALS),clean)
 ifneq ($(MAKECMDGOALS),distclean)
-ifneq ($(SourceDepend),)
--include $(SourceDepend)
-endif
+-include /dev/null $(SourceDepend)
 endif
 endif
 
index f002d0af06587c08827085001af5e8beda9a6a16..45a25edb0ab4916908277737a97eaa8b75928a5d 100644 (file)
@@ -843,9 +843,7 @@ $(BUILD_OBJ_DIR)/Depend/%.d: $(SourceDir)%.c $(BUILD_OBJ_DIR)/Depend/.dir
 #
 ifneq ($(MAKECMDGOALS),clean)
 ifneq ($(MAKECMDGOALS),distclean)
-ifneq ($(SourceDepend),)
--include $(SourceDepend)
-endif
+-include /dev/null $(SourceDepend)
 endif
 endif