diff --git a/apps/Makefile b/apps/Makefile index 394a78fd..80196de4 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -58,11 +58,11 @@ clean: .PHONY: modules modules: - -@for r in $(app_modules) "" ; do \ - if [ -n "$$r" ]; then \ + @for r in $(app_modules) "" ; do \ + if [ -n "$$r" -a -f "$$r"/Makefile ]; then \ echo "" ; \ echo "" ; \ - COREPATH=../$(COREPATH) $(MAKE) -C $$r all; \ + COREPATH=../$(COREPATH) $(MAKE) -C $$r all || exit 1; \ fi ; \ done diff --git a/core/plug-in/Makefile.app_module b/core/plug-in/Makefile.app_module index ad8587d0..03c3ff9e 100644 --- a/core/plug-in/Makefile.app_module +++ b/core/plug-in/Makefile.app_module @@ -27,12 +27,12 @@ depends = $(srcs:.cpp=.d) .PHONY: all all: $(extra_target) - -@$(MAKE) deps && \ + @$(MAKE) deps && \ $(MAKE) $(lib_full_name) .PHONY: module_package module_package: $(extra_target) - -@$(MAKE) deps && \ + @$(MAKE) deps && \ $(MAKE) $(lib_name)