i386_QEMUHOST = $(32BIT_QEMUHOST)
amd64_QEMUHOST = $(64BIT_QEMUHOST)
+## Which distribution of Qemu to use.
+CONFIG_VARS += $(foreach d,$(DISTS),$d_QEMUDIST)
+stretch_QEMUDIST = buster
+
## Qemu architecture names. These tell us which Qemu binary to use for a
## particular Debian architecture.
CONFIG_VARS += $(foreach a,$(FOREIGN_ARCHS),$a_QEMUARCH)
$(V_AT)mkdir -p $(dir $(patsubst %/,%,$@))
$(call v_tag,MKDIR)mkdir $@
-LOCAL_ARCH_DIRS = bin/ etc/ games/ include/ lib/ libexec/ sbin/
+LOCAL_ARCH_DIRS = bin/ etc/ games/ include/ include.aside/
+LOCAL_ARCH_DIRS += lib/ libexec/ sbin/
LOCAL_ARCH_LINKS = man
man_LINKDEST = share/man
all:: $(foreach a,$(ALL_ARCHS),\
.PHONY: maint
###--------------------------------------------------------------------------
+### Running random commands.
+
+CMD = echo %d %a
+subst-command = $(subst %d,$(call chroot-dist,$1), \
+ $(subst %a,$(call chroot-arch,$1), \
+ $(subst %r,$1, $(CMD))))
+
+run: $(foreach c,$(ALL_CHROOTS),run/$c)
+$(foreach c,$(ALL_CHROOTS),run/$c): run/%:
+ $(V_AT)$(call v_print,RUN,$(call subst-command,$*))\
+ $(call subst-command,$*)
+
+###--------------------------------------------------------------------------
### Other maintenance targets.
show:; : $x