luci.mk: refactor install recipe
authorJo-Philipp Wich <jo@mein.io>
Wed, 28 Sep 2022 07:17:06 +0000 (09:17 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 30 Sep 2022 07:58:31 +0000 (09:58 +0200)
commit3393e15815f116b33e90b5f58050cfedebe00fe2
tree4de3c5185f0fc49b4d177b73825861866b44eac2
parent25f75e08f1125a724d99cdb900ed91419b55d2ff
luci.mk: refactor install recipe

Detect the presence of directories using Make $(wildcard ...) and emit
plain install commands depending on the outcome instead of relying on
shell conditionals which impose syntax constraints on code outside of
the scope of the LuCI repo.

Fixes: #5936
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
luci.mk