diff --git a/Makefile b/Makefile index 1f914f7..f327d0d 100644 --- a/Makefile +++ b/Makefile @@ -148,21 +148,23 @@ $(ARNAME): $(SUBDIRS) $(LOCALOBJECTS) .PHONY: $(SUBDIRS) $(SUBDIRS): - @depth=$(MAKELEVEL); \ - while [ $${depth} -gt 0 ] ; do \ - echo -n " "; \ - depth=`expr $$depth - 1`; \ - done; \ - true - @echo " <$@>" - @$(MAKE) -s -S -C $@ artifacts $(ARCH) - @depth=$(MAKELEVEL); \ - while [ $${depth} -gt 0 ] ; do \ - echo -n " "; \ - depth=`expr $$depth - 1`; \ - done; \ - true - @echo " " + @if [ -e "$@/Makefile" ]; then \ + depth=$(MAKELEVEL); \ + while [ $${depth} -gt 0 ] ; do \ + echo -n " "; \ + depth=`expr $$depth - 1`; \ + done; \ + true; \ + echo " <$@>"; \ + $(MAKE) -s -S -C $@ artifacts $(ARCH); \ + depth=$(MAKELEVEL); \ + while [ $${depth} -gt 0 ] ; do \ + echo -n " "; \ + depth=`expr $$depth - 1`; \ + done; \ + true; \ + echo " "; \ + fi .PHONY: all all: $(TARGETS)