tools/libs: Don't recursively expand MAJOR ?= $(shell ...)
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 13 Dec 2021 18:49:17 +0000 (18:49 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 16 Dec 2021 20:27:12 +0000 (20:27 +0000)
commita4885765eedbddafcc57bce6cbfcd443d0a7eca9
treea0b809932c83b0abfa013ffb7847b4d1607eaaed
parent989289e23f9c2700b73be8386115ffc98bfec906
tools/libs: Don't recursively expand MAJOR ?= $(shell ...)

?= is a deferred assignment.  Switch to an alternative form which lets us use
an immediate assignment.

Before, version.sh gets run anywhere between 46 and 88 times, with 50 on a
`clean`.  After, between 6 and 12 times.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
tools/libs/libs.mk