Don't build folders without Makefile

This commit is contained in:
2020-02-07 13:37:32 +01:00
parent d82c8a2047
commit 61894c4588
+9 -7
View File
@@ -148,21 +148,23 @@ $(ARNAME): $(SUBDIRS) $(LOCALOBJECTS)
.PHONY: $(SUBDIRS) .PHONY: $(SUBDIRS)
$(SUBDIRS): $(SUBDIRS):
@depth=$(MAKELEVEL); \ @if [ -e "$@/Makefile" ]; then \
depth=$(MAKELEVEL); \
while [ $${depth} -gt 0 ] ; do \ while [ $${depth} -gt 0 ] ; do \
echo -n " "; \ echo -n " "; \
depth=`expr $$depth - 1`; \ depth=`expr $$depth - 1`; \
done; \ done; \
true true; \
@echo " <$@>" echo " <$@>"; \
@$(MAKE) -s -S -C $@ artifacts $(ARCH) $(MAKE) -s -S -C $@ artifacts $(ARCH); \
@depth=$(MAKELEVEL); \ depth=$(MAKELEVEL); \
while [ $${depth} -gt 0 ] ; do \ while [ $${depth} -gt 0 ] ; do \
echo -n " "; \ echo -n " "; \
depth=`expr $$depth - 1`; \ depth=`expr $$depth - 1`; \
done; \ done; \
true true; \
@echo " </$@>" echo " </$@>"; \
fi
.PHONY: all .PHONY: all
all: $(TARGETS) all: $(TARGETS)