]> xenbits.xensource.com Git - people/royger/xen-test-framework.git/commitdiff
Only recurse into directories with a Makefile
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 22 Oct 2015 09:53:41 +0000 (10:53 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 22 Oct 2015 09:53:41 +0000 (10:53 +0100)
Git will leave directories around by default when switching branches,
which causes unnecessary build failures.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Makefile

index e2a9068a2056abbfbb6f7c72e9056dbebf967859..5fc9fd8fff1b0a625082a120e3440aaf19eaf1c8 100644 (file)
--- 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