diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-02-15 15:13:19 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-02-15 15:13:19 -0500 |
commit | cd25396136f2ab9970af44e074886be1de2ae89c (patch) | |
tree | 7e585a95e12d1288258d33445292fee22f340a62 /subdirs.mk | |
parent | b6862788b437a3c3198e466bc5d4ea33c253c9e1 (diff) | |
download | makefile_templates-cd25396136f2ab9970af44e074886be1de2ae89c.tar.gz makefile_templates-cd25396136f2ab9970af44e074886be1de2ae89c.zip |
do not react on non existing subdirs
Diffstat (limited to 'subdirs.mk')
-rw-r--r-- | subdirs.mk | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |