summaryrefslogtreecommitdiff
path: root/subdirs.mk
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-02-15 15:13:19 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-02-15 15:13:19 -0500
commitcd25396136f2ab9970af44e074886be1de2ae89c (patch)
tree7e585a95e12d1288258d33445292fee22f340a62 /subdirs.mk
parentb6862788b437a3c3198e466bc5d4ea33c253c9e1 (diff)
downloadmakefile_templates-cd25396136f2ab9970af44e074886be1de2ae89c.tar.gz
makefile_templates-cd25396136f2ab9970af44e074886be1de2ae89c.zip
do not react on non existing subdirs
Diffstat (limited to 'subdirs.mk')
-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)