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)
$(SUBDIRS):
@depth=$(MAKELEVEL); \
@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); \
true; \
echo " <$@>"; \
$(MAKE) -s -S -C $@ artifacts $(ARCH); \
depth=$(MAKELEVEL); \
while [ $${depth} -gt 0 ] ; do \
echo -n " "; \
depth=`expr $$depth - 1`; \
done; \
true
@echo " </$@>"
true; \
echo " </$@>"; \
fi
.PHONY: all
all: $(TARGETS)