# See /LICENSE for more information.
#
-include $(TOPDIR)/.host.mk
+include $(TMP_DIR)/.host.mk
export TAR
-$(TOPDIR)/.host.mk: $(INCLUDE_DIR)/host.mk
+$(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk
+ @mkdir -p $(TMP_DIR)
@( \
HOST_OS=`uname`; \
case "$$HOST_OS" in \
TAR=`which gtar`; \
[ -n "$$TAR" -a -x "$$TAR" ] || TAR=`which tar`; \
echo "TAR:=$$TAR" >> $@; \
- if $$TAR --version 2>&1 | grep 'GNU' >/dev/null; then \
- echo "TAR_WILDCARDS:=--wildcards" >> $@; \
- fi; \
ZCAT=`which gzcat`; \
[ -n "$$ZCAT" -a -x "$$ZCAT" ] || ZCAT=`which zcat`; \
echo "ZCAT:=$$ZCAT" >> $@; \
+ echo "BASH:=$(shell which bash)" >> $@; \
)