Don't build folders without Makefile

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