[sr-dev] git:master: makefile: modules install obeys $(err_fail)

Andrei Pelinescu-Onciul andrei at iptel.org
Thu Oct 1 13:47:50 CEST 2009


Module: sip-router
Branch: master
Commit: f37495005e66e8f7ff0a6bf94bc9d25e437b2d9a
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f37495005e66e8f7ff0a6bf94bc9d25e437b2d9a

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Thu Oct  1 13:45:15 2009 +0200

makefile: modules install obeys $(err_fail)

- if err_fail is 1 and a library fails to install the whole make
  install will fail

---

 Makefile.modules |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Makefile.modules b/Makefile.modules
index 0b85655..d536272 100644
--- a/Makefile.modules
+++ b/Makefile.modules
@@ -64,10 +64,12 @@ LDFLAGS:=$(MOD_LDFLAGS)
 endif
 
 
+err_fail?=1
 
 include $(COREPATH)/Makefile.dirs
 include $(COREPATH)/Makefile.targets
 include $(COREPATH)/Makefile.rules
+include $(COREPATH)/Makefile.shared
 
 # default: if not overwritten by the main Makefile, install in modules
 mods_dst=$(modules_prefix)/$(modules_dir)/modules
@@ -86,7 +88,7 @@ install: $(NAME) $(mods_dst) install-libs
 
 install-libs:
 	@for lib in $(dir $(SER_LIBS)); do \
-		$(MAKE) -C "$${lib}" install-if-newer ;\
+		$(call try_err, $(MAKE) -C "$${lib}" install-if-newer ) ;\
 	done
 
 # README build rules




More information about the sr-dev mailing list