Don't build folders without Makefile
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user