luci.mk: fix compatibility with GNU Make 4.2
authorJo-Philipp Wich <jo@mein.io>
Tue, 25 Oct 2022 09:30:13 +0000 (11:30 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 25 Oct 2022 10:20:22 +0000 (12:20 +0200)
commit639e7faa1ad25b0bc2ffd5bfec79c2b9d95a50ee
tree7e51b9c915f7ab0a631b91884c9fbb11d5f859ca
parent39d722e00a05e9792d35770eb43810603e39e6c4
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 <jo@mein.io>
luci.mk