]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: makefile: work around another bug in make 3.80
authorWilly Tarreau <w@1wt.eu>
Fri, 29 Mar 2019 19:55:54 +0000 (20:55 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 29 Mar 2019 20:00:01 +0000 (21:00 +0100)
commit57c99ec18e8254742f45aaa2100c0c4357cba6c7
tree07417795edc9bdce7c5b990c84d1925c38fd82d1
parent509a009c5dd06e680bc2fff6ebc45f7f42aaee3e
BUILD: makefile: work around another bug in make 3.80

GNU make 3.80 has an issue with calls to functions inside an if block,
which is just what we recently introduced to simplify the targets
declaration. The fix is easy, it simply consists in assigning the
command to a variable inside the if block and evaluating this command
after the block. This also makes the code slightly more readable so we
can keep compatibility with 3.80 for now.

No backport is needed.
Makefile