[sr-dev] git:kamailio_3.0: makefile: fix install-cfg & install-utils on solaris

Andrei Pelinescu-Onciul andrei at iptel.org
Wed Mar 17 21:18:14 CET 2010


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

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Tue Mar 16 18:15:56 2010 +0100

makefile: fix install-cfg & install-utils on solaris

Reported-by: Nathaniel L Keeling  keeling akan-tech com
(cherry picked from commit ad57482b7d05417f7f0058cef8c698f18d6d9a39)
(cherry picked from commit d4028e0df24a97ccaacf867ab6bfe92f270b92e0)

---

 Makefile |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 1be6f4a..38b0b96 100644
--- a/Makefile
+++ b/Makefile
@@ -917,8 +917,8 @@ install-cfg: $(cfg_prefix)/$(cfg_dir)
 					$(cfg_prefix)/$(cfg_dir)$(MAIN_NAME)-advanced.cfg; \
 			fi; \
 		fi
-		# other configs
-		@for r in $(C_INSTALL_CFGS) ; do \
+		@# other configs
+		@for r in $(C_INSTALL_CFGS) ""; do \
 			if [ -n "$$r" ]; then \
 				if [ -f "$$r" ]; then \
 					n=`basename "$$r"` ; \
@@ -1005,8 +1005,10 @@ install-utils: utils $(bin_prefix)/$(bin_dir)
 			fi ;\
 		fi ; \
 	done; true
-	@for ut in $(C_INSTALL_UTILS) ; do \
-		$(call try_err, $(MAKE) -C "$${ut}" install-if-newer ) ;\
+	@for ut in $(C_INSTALL_UTILS) "" ; do \
+		if [ -n "$$r" ]; then \
+			$(call try_err, $(MAKE) -C "$${ut}" install-if-newer ) ;\
+		fi ; \
 	done; true
 
 




More information about the sr-dev mailing list