lua-rs232: don't rely on detected luadir
authorEneas U de Queiroz <cotequeiroz@gmail.com>
Wed, 11 Aug 2021 14:17:30 +0000 (11:17 -0300)
committerEneas U de Queiroz <cotequeiroz@gmail.com>
Wed, 11 Aug 2021 20:47:30 +0000 (17:47 -0300)
commit82032d4fb4ef1d79cdedbd3f2c88549b85cfbaf6
treeb1bf4f43876dd418680f604ca61cca580a8cb124
parent0e4e08ff24916a460b017323fa7a56f8677407ae
lua-rs232: don't rely on detected luadir

If TOPDIR starts with /usr, then the configure script will use the
staging tree hierarchy instead of using plain /usr/lib.  For example, if
TOPDIR=/usr/src/openwrt, then the files will not be available under
$(PKG_INSTALL_DIR)/usr/lib/lua/5.1/, as expected, but under
$(PKG_INSTALL_DIR)/usr/src/openwrt/staging_dir/hostpkg/lib/lua/5.1/.

Set the correct path when calling 'make'.  As a bonus, the hardcoded
version number in the Makefile can be dropped.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
lang/lua-rs232/Makefile