ref: 3659fbd38c881a7bc24eadfddfc7e1fabe1fa517
parent: 5556d1184169168e59656863456c88c3f958ca45
parent: 4f83315d18c93036be3c07d144b0226bbe762468
author: James Zern <[email protected]>
date: Tue Jun 10 11:58:59 EDT 2014
Merge "Makefile: skip .d inclusion for 'testdata' target"
--- a/build/make/Makefile
+++ b/build/make/Makefile
@@ -330,7 +330,10 @@
ifneq ($(target),)
include $(SRC_PATH_BARE)/$(target:-$(TOOLCHAIN)=).mk
endif
-ifeq ($(filter %clean,$(MAKECMDGOALS)),)
+
+skip_deps := $(filter %clean,$(MAKECMDGOALS))
+skip_deps += $(findstring testdata,$(MAKECMDGOALS))
+ifeq ($(strip $(skip_deps)),)
# Older versions of make don't like -include directives with no arguments
ifneq ($(filter %.d,$(OBJS-yes:.o=.d)),)
-include $(filter %.d,$(OBJS-yes:.o=.d))