From 91d1249bbb793e649cfdf1aac224f358642b28d8 Mon Sep 17 00:00:00 2001 From: Shinichiro Hamaji Date: Fri, 4 Sep 2015 09:54:48 +0900 Subject: Correct the priority of initial variables Also make builtin variables recursive. --- bootstrap.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bootstrap.go') diff --git a/bootstrap.go b/bootstrap.go index 91cac40..cdacd8c 100644 --- a/bootstrap.go +++ b/bootstrap.go @@ -24,13 +24,13 @@ const bootstrapMakefileName = "*bootstrap*" func bootstrapMakefile(targets []string) (makefile, error) { bootstrap := ` -CC:=cc -CXX:=g++ -AR:=ar -MAKE:=kati +CC?=cc +CXX?=g++ +AR?=ar +MAKE?=kati # Pretend to be GNU make 3.81, for compatibility. -MAKE_VERSION:=3.81 -SHELL:=/bin/sh +MAKE_VERSION?=3.81 +SHELL=/bin/sh # TODO: Add more builtin vars. # http://www.gnu.org/software/make/manual/make.html#Catalogue-of-Rules -- cgit v1.2.3