package/pkg-luarocks: add per package upgrade target
authorFrancois Perrad <fperrad@gmail.com>
Wed, 19 Dec 2018 08:17:07 +0000 (09:17 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 31 Dec 2018 16:46:11 +0000 (17:46 +0100)
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/pkg-luarocks.mk

index f0985433b76d334a71d932cd8833c4f91271afab..78d6c325f8b44b804e424efdbab75d0b8adfa6a2 100644 (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
 
 ################################################################################