summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--subdirs.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/subdirs.mk b/subdirs.mk
index b742d75..1491144 100644
--- a/subdirs.mk
+++ b/subdirs.mk
@@ -15,9 +15,9 @@ subdirs: $(SUBDIRS)
$(SUBDIRS):
echo $(subst $(space),,$(dir_symbol))'|' $@ $(MAKECMDGOALS)
ifeq ($(USE_ABSOLUTE_TOPDIR),0)
- $(MAKE) -C $@ $(MAKECMDGOALS)
+ [ -d $@ ] && $(MAKE) -C $@ $(MAKECMDGOALS) || echo no subdir $@
else
- TOPDIR="$(TOPDIR_FOR_SUBDIR)" $(MAKE) -C $@ $(MAKECMDGOALS)
+ [ -d $@ ] && TOPDIR="$(TOPDIR_FOR_SUBDIR)" $(MAKE) -C $@ $(MAKECMDGOALS) || echo no subdir $@
endif
.PHONY: $(SUBDIRS)