diff options
Diffstat (limited to 'scripts/mk/vendor.mk')
-rw-r--r-- | scripts/mk/vendor.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/mk/vendor.mk b/scripts/mk/vendor.mk index d257edd..a8d29cb 100644 --- a/scripts/mk/vendor.mk +++ b/scripts/mk/vendor.mk @@ -41,10 +41,10 @@ ifndef dpkg_datadir endif include $(dpkg_datadir)/buildapi.mk -dpkg_lazy_eval ?= $(eval $(1) = $(2)$$($(1))) -dpkg_lazy_set ?= $(call dpkg_lazy_eval,$(1),$$(eval $(1) := $(2))) -$(call dpkg_lazy_set,DEB_VENDOR,$$(shell dpkg-vendor --query Vendor)) -$(call dpkg_lazy_set,DEB_PARENT_VENDOR,$$(shell dpkg-vendor --query Parent)) +dpkg_late_eval ?= $(or $(value DPKG_CACHE_$(1)),$(eval DPKG_CACHE_$(1) := $(shell $(2)))$(value DPKG_CACHE_$(1))) + +DEB_VENDOR = $(call dpkg_late_eval,DEB_VENDOR,dpkg-vendor --query Vendor) +DEB_PARENT_VENDOR = $(call dpkg_late_eval,DEB_PARENT_VENDOR,dpkg-vendor --query Parent) dpkg_vendor_derives_from_v0 = dpkg-vendor --derives-from $(1) && echo yes || echo no dpkg_vendor_derives_from_v1 = $(shell $(dpkg_vendor_derives_from_v0)) |