Browse code

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

Reported-by: Nathaniel L Keeling keeling akan-tech com

Andrei Pelinescu-Onciul authored on 16/03/2010 17:15:56
Showing 1 changed files
... ...
@@ -917,8 +917,8 @@ install-cfg: $(cfg_prefix)/$(cfg_dir)
917 917
 					$(cfg_prefix)/$(cfg_dir)$(MAIN_NAME)-advanced.cfg; \
918 918
 			fi; \
919 919
 		fi
920
-		# other configs
921
-		@for r in $(C_INSTALL_CFGS) ; do \
920
+		@# other configs
921
+		@for r in $(C_INSTALL_CFGS) ""; do \
922 922
 			if [ -n "$$r" ]; then \
923 923
 				if [ -f "$$r" ]; then \
924 924
 					n=`basename "$$r"` ; \
... ...
@@ -1005,8 +1005,10 @@ install-utils: utils $(bin_prefix)/$(bin_dir)
1005 1005
 			fi ;\
1006 1006
 		fi ; \
1007 1007
 	done; true
1008
-	@for ut in $(C_INSTALL_UTILS) ; do \
1009
-		$(call try_err, $(MAKE) -C "$${ut}" install-if-newer ) ;\
1008
+	@for ut in $(C_INSTALL_UTILS) "" ; do \
1009
+		if [ -n "$$r" ]; then \
1010
+			$(call try_err, $(MAKE) -C "$${ut}" install-if-newer ) ;\
1011
+		fi ; \
1010 1012
 	done; true
1011 1013
 
1012 1014