summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rwxr-xr-x[-rw-r--r--]util/xcompile/xcompile0
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c8cad4fab3..fad8103673 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,9 @@
## SUCH DAMAGE.
##
-$(if $(wildcard .xcompile),,$(eval $(shell bash util/xcompile/xcompile $(XGCCPATH) > .xcompile)))
+.xcompile: util/xcompile/xcompile
+ A=`mktemp $@.XXXXXX`; $< $(XGCCPATH) > $$A && mv $$A $@ 2> /dev/null
+
include .xcompile
export top := $(CURDIR)
@@ -271,4 +273,4 @@ clean-cscope:
distclean: clean
rm -f .config .config.old ..config.tmp .kconfig.d .tmpconfig* .ccwrap .xcompile
-.PHONY: $(PHONY) clean clean-for-update clean-cscope cscope distclean doxygen doxy .xcompile
+.PHONY: $(PHONY) clean clean-for-update clean-cscope cscope distclean doxygen doxy
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 823924341a..823924341a 100644..100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile