~mdw
/
distorted-chroot
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
fe87403
)
Makefile: Add a new thing for running arbitrary commands.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 5 May 2020 19:48:32 +0000
(20:48 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 5 May 2020 19:50:02 +0000
(20:50 +0100)
Makefile
patch
|
blob
|
blame
|
history
diff --git
a/Makefile
b/Makefile
index
a3a1ecc
..
c9befaf
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-648,6
+648,19
@@
maint: all check
.PHONY: maint
###--------------------------------------------------------------------------
.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
### Other maintenance targets.
show:; : $x