mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 21:26:36 +00:00
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 <francois.perrad@gadz.org> [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) <arnout@mind.be>
This commit is contained in:
parent
11cae5b1ae
commit
e04289beaa
@ -197,6 +197,14 @@ endif
|
|||||||
# make targets
|
# make targets
|
||||||
$(call inner-generic-package,$(1),$(2),$(3),$(4))
|
$(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
|
endef
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user