From cd25396136f2ab9970af44e074886be1de2ae89c Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Mon, 15 Feb 2021 15:13:19 -0500 Subject: do not react on non existing subdirs --- subdirs.mk | 4 ++-- 1 file 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) -- cgit v1.2.3