From e04289beaad8f3620f5702a4841a4867b973b677 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Thu, 11 Oct 2018 18:12:48 +0200 Subject: [PATCH] pkg-perl: add per package upgrade target If PKG_DISTNAME is defined, an addition pkg-upgrade target is created that will run scancpan with the right parameters for re-generating the package. Signed-off-by: Francois Perrad [Arnout: - make it really private to pkg-perl; - factor away the host/target condition, instead use $(4) directly. ] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/pkg-perl.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/pkg-perl.mk b/package/pkg-perl.mk index 07348bd5d3..1ecf31eff9 100644 --- a/package/pkg-perl.mk +++ b/package/pkg-perl.mk @@ -197,6 +197,14 @@ endif # make targets $(call inner-generic-package,$(1),$(2),$(3),$(4)) +# Upgrade helper +ifneq ($$($(3)_DISTNAME),) +$(1)-upgrade: + utils/scancpan -force -$(4) $$($(3)_DISTNAME) + +.PHONY: $(1)-upgrade +endif + endef ################################################################################ -- 2.30.2