## $(call squote,TXT)
##
## Single-quote TXT.
-squote = '$(subst ','\\'',$1)'
+squote = '$(subst ','\'',$1)'
+#'
## $(call chroot-dist,D-A) -> D
## $(call chroot-arch,D-A) -> A
### Main chroot maintenance.
OPTS =
-FRESH = create
+FRESH = 1w
JOBS = chroot cross-tools pkg-build
MAINTQ_ = -q
MAINTQ_0 = -q
-MAINT = +$(call v_tag,RUN)\
+MAINT = +$(call v_tag,MAINT)\
PYTHONPATH=$(STATE)/lib/python $(STATE)/bin/chroot-maint \
$(MAINTQ_$V) $(OPTS)
.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