BUILD: makefile: do not restrict Lua's prepend path to empty LUA_LIB_NAME
authorWilly Tarreau <w@1wt.eu>
Thu, 15 Dec 2022 10:55:51 +0000 (11:55 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Dec 2022 15:53:35 +0000 (16:53 +0100)
commit447247aa8d2fc5a2b2f8168ec353958971663fcb
treedcf2891f172bb63f1a7b302d8bc5119970c24051
parent2a3a882fe20508c021944f7623928dd75a52ab5a
BUILD: makefile: do not restrict Lua's prepend path to empty LUA_LIB_NAME

The HLUA_PREPEND_PATH and HLUA_PREPEND_CPATH settings were only applied
when LUA_LIB_NAME was empty, otherwise they were silently ignored. Let's
take them out of that conditional block as this makes no sense to enforce
such a restriction (the main reason in fact is that this whole block is
unreadable).

Also take this opportunity to unfold the last two imbricated tests of
LUA_LIB_NAME and put comments around certain blocks to know what "endif"
matches what "if".
Makefile