Makefile: Use immediate assignement when calculating SYSTEM
This makes null builds run with just "make" go from 4.6 seconds to 73ms, since it only calls config.guess once.
This commit is contained in:
parent
990380a9a7
commit
91c718370b
1 changed files with 3 additions and 1 deletions
4
Makefile
4
Makefile
|
|
@ -21,7 +21,9 @@
|
|||
include config/version
|
||||
|
||||
SHELL = /bin/sh
|
||||
SYSTEM ?= $(shell config/config.guess | cut -d - -f 3 | sed -e 's/[0-9\.]//g;')
|
||||
ifndef SYSTEM
|
||||
SYSTEM := $(shell config/config.guess | cut -d - -f 3 | sed -e 's/[0-9\.]//g;')
|
||||
endif
|
||||
SYSTEM.SUPPORTED = $(shell test -f config/Makefile.$(SYSTEM) && echo 1)
|
||||
|
||||
ifeq ($(SYSTEM.SUPPORTED), 1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue