From: Andrew Cooper Date: Wed, 2 Dec 2015 10:22:39 +0000 (+0000) Subject: Avoid failing to build if the last directory lacks a Makefile X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2d17c1b00d4f4bdaf64215ed25c9ef7d5c5f33ce;p=people%2Froyger%2Fxen-test-framework.git Avoid failing to build if the last directory lacks a Makefile Signed-off-by: Andrew Cooper --- diff --git a/Makefile b/Makefile index 5fc9fd8..52aedec 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,15 @@ .PHONY: all all: @for D in $(wildcard tests/*); do \ - [ -e $$D/Makefile ] && $(MAKE) -C $$D build; \ + [ ! -e $$D/Makefile ] && continue; \ + $(MAKE) -C $$D build; \ done .PHONY: install install: @for D in $(wildcard tests/*); do \ - [ -e $$D/Makefile ] && $(MAKE) -C $$D install; \ + [ ! -e $$D/Makefile ] && continue; \ + $(MAKE) -C $$D install; \ done .PHONY: cscope