luci.mk: fix compatibility with GNU Make 4.2
authorJo-Philipp Wich <[email protected]>
Tue, 25 Oct 2022 09:30:13 +0000 (11:30 +0200)
committerJo-Philipp Wich <[email protected]>
Mon, 3 Apr 2023 11:45:03 +0000 (13:45 +0200)
commitbb156983269125a538afad751b332e6dc4829ee8
tree280e4c8f5630e180a41c5cf94af438e6dad55ba4
parent60148aec024c91840fb4baf3aaaaf6dacda64b97
luci.mk: fix compatibility with GNU Make 4.2

GNU Make version 4.2 chokes on `#` characters embedded in variable
substitutions, leading to the following error:

    ../../luci.mk:114: *** unterminated call to function 'if': missing ')'.  Stop.

Avoid this problem by replacing variable substitutions with Git branch
format arguments.

Ref: https://github.com/openwrt/luci/pull/5976#issuecomment-1289935106
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 639e7faa1ad25b0bc2ffd5bfec79c2b9d95a50ee)
luci.mk