package/pkg-luarocks: add per package upgrade target

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Francois Perrad 2018-12-19 09:17:07 +01:00 committed by Thomas Petazzoni
parent 38c55bfb31
commit f5c6d238cf

View File

@ -72,6 +72,12 @@ endif
# make targets
$(call inner-generic-package,$(1),$(2),$(3),$(4))
# Upgrade helper
$(1)-upgrade: host-luarocks
$$(LUAROCKS_RUN_CMD) buildroot $$($(2)_NAME_UPSTREAM) $(1)
.PHONY: $(1)-upgrade
endef
################################################################################