From: Mark Wooding Date: Fri, 20 Sep 2019 02:35:37 +0000 (+0100) Subject: Makefile: Capture `$(shell ...)' results in simply-expanded variables. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/distorted-chroot/commitdiff_plain/afb5d0517e7826b71b6d81379462beeafadd9b4e?ds=inline Makefile: Capture `$(shell ...)' results in simply-expanded variables. --- 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.