From afb5d0517e7826b71b6d81379462beeafadd9b4e Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 20 Sep 2019 03:35:37 +0100 Subject: [PATCH] Makefile: Capture `$(shell ...)' results in simply-expanded variables. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 72299a7..a2ba217 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ NOTIFY_FATAL = 1 ## Volume group from which to allocate chroot volumes and snapshots. CONFIG_VARS += VG LVPREFIX -VG = vg-$(shell hostname) +VG := vg-$(shell hostname) LVPREFIX = ## Logical volume size, as an LVM option. @@ -76,8 +76,8 @@ DISTS = $(PRIMARY_DIST) buster bullseye sid ## Host's native architecture(s). CONFIG_VARS += MYARCH NATIVE_ARCHS -MYARCH = $(shell dpkg --print-architecture) -OTHERARCHS = $(shell dpkg --print-foreign-architectures) +MYARCH := $(shell dpkg --print-architecture) +OTHERARCHS := $(shell dpkg --print-foreign-architectures) NATIVE_ARCHS = $(MYARCH) $(OTHERARCHS) ## Foreign (emulated) architectures to support. -- 2.11.0