kumquat-buildroot/package/luainterpreter/luainterpreter.mk
Carlos Santos 9a3530c008 packages/luainterpreter: remove target-finalize hack
Use LUAINTERPRETER_TARGET_FINALIZE_HOOKS, now that it's suported by
virtual packages.

Signed-off-by: Carlos Santos <unixmania@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
[Arnout: don't remove relevant comment]
2020-08-30 18:05:55 +02:00

20 lines
595 B
Makefile

################################################################################
#
# luainterpreter
#
################################################################################
LUAINTERPRETER_ABIVER = $(call qstrip,$(BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION))
# Lua packages often install documentation, clean that up globally
define LUAINTERPRETER_REMOVE_DOC
rm -rf $(TARGET_DIR)/usr/share/lua/$(LUAINTERPRETER_ABIVER)/doc
endef
LUAINTERPRETER_TARGET_FINALIZE_HOOKS += LUAINTERPRETER_REMOVE_DOC
$(eval $(virtual-package))
$(eval $(host-virtual-package))
LUA_RUN = $(HOST_DIR)/bin/lua