From: Andrew Cooper Date: Thu, 22 Oct 2015 09:53:41 +0000 (+0100) Subject: Only recurse into directories with a Makefile X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=70455eeac36b20d3e4792d22a7ef829ff5a92dad;p=people%2Froyger%2Fxen-test-framework.git Only recurse into directories with a Makefile Git will leave directories around by default when switching branches, which causes unnecessary build failures. Signed-off-by: Andrew Cooper --- diff --git a/Makefile b/Makefile index e2a9068..5fc9fd8 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,13 @@ .PHONY: all all: @for D in $(wildcard tests/*); do \ - $(MAKE) -C $$D build; \ + [ -e $$D/Makefile ] && $(MAKE) -C $$D build; \ done .PHONY: install install: @for D in $(wildcard tests/*); do \ - $(MAKE) -C $$D install; \ + [ -e $$D/Makefile ] && $(MAKE) -C $$D install; \ done .PHONY: cscope