Ensure we use host 'make', even when building 'make' in buildroot

This commit is contained in:
Ulf Samuelsson 2007-07-17 12:09:07 +00:00
parent 458ce81c87
commit 4705b60076
1 changed files with 9 additions and 4 deletions

View File

@ -1,8 +1,13 @@
ifndef MAKE
MAKE=make
MAKE:=make
endif
MAKE1:=$(MAKE) MAKE="$(firstword $(MAKE)) -j1"
MAKE:=$(MAKE) -j$(BR2_JLEVEL)
ifndef HOSTMAKE
HOSTMAKE=$(MAKE)
endif
HOSTMAKE :=$(shell $(CONFIG_SHELL) -c "which $(HOSTMAKE)" || type -p $(HOSTMAKE) || echo make)
MAKE1:=$(HOSTMAKE) MAKE="$(firstword $(HOSTMAKE)) -j1"
MAKE:=$(HOSTMAKE) -j$(BR2_JLEVEL)
# Strip off the annoying quoting
ARCH:=$(strip $(subst ",, $(BR2_ARCH)))