fix another build error
[openwrt.org/openwrt.git] / include / host.mk
blob:a/include/host.mk -> blob:b/include/host.mk
--- a/include/host.mk
+++ b/include/host.mk
@@ -9,9 +9,9 @@
 
 export TAR
 
-$(TMP_DIR)/.host.mk: $(INCLUDE_DIR)/host.mk
+$(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk
+	@mkdir -p $(TMP_DIR)
 	@( \
-		echo -n "BASH:=$(shell which bash)"; \
 		HOST_OS=`uname`; \
 		case "$$HOST_OS" in \
 			Linux) HOST_ARCH=`uname -m`;; \
@@ -29,6 +29,7 @@
 		ZCAT=`which gzcat`; \
 		[ -n "$$ZCAT" -a -x "$$ZCAT" ] || ZCAT=`which zcat`; \
 		echo "ZCAT:=$$ZCAT" >> $@; \
+		echo "BASH:=$(shell which bash)" >> $@; \
 	)
 
 

comments