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:
Sam Clegg 2013-03-13 12:08:56 -07:00
parent 990380a9a7
commit 91c718370b

View file

@ -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)