]> granicus.if.org Git - libvpx/commitdiff
Makefile: skip .d inclusion for 'testdata' target
authorJames Zern <jzern@google.com>
Sun, 8 Jun 2014 03:24:19 +0000 (20:24 -0700)
committerJames Zern <jzern@google.com>
Sun, 8 Jun 2014 03:24:19 +0000 (20:24 -0700)
avoids some unnecessary work when pulling testdata in a freshly
configured tree

Change-Id: Ib43379b0e1549107f3f1b227afca49a899bcc3ab

build/make/Makefile

index 63ec271b72eb64224c05a820e076de13c55d2410..dc61429a9715c2538b82158ca6458c7f40bd3bc6 100644 (file)
@@ -330,7 +330,10 @@ endef
 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))