luci.mk: refactor install recipe
authorJo-Philipp Wich <[email protected]>
Wed, 28 Sep 2022 07:17:06 +0000 (09:17 +0200)
committerJo-Philipp Wich <[email protected]>
Mon, 3 Apr 2023 11:45:03 +0000 (13:45 +0200)
commit9ee6afd3ec2f4d9bb1f1c2eb6c6946ef9dfc5308
tree066ac908361f0e19b506a1bb64d53eac32f0800f
parentfbdecac5853079bd36a9b4a522a7f7adf9b3a3b0
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 <[email protected]>
(cherry picked from commit 3393e15815f116b33e90b5f58050cfedebe00fe2)
luci.mk