3 ms·
Not really the tool for the job, for anything non-trivial (multiline) you end up with \'s (there are some hacks around that), and shell variables need doubling,
by jjgreen 6y ago
Not really the tool for the job, for anything non-trivial (multiline) you end up with \'s (there are some hacks around that), and shell variables need doubling, so
run:
for name in a b c ; do \
some-command $$name \
done
better off writing that in a proper shell script and then
run:
sh path/to/script.sh $(SOME) $(ARGS)
IMHO
- Someone 6y agoI wouldn’t soon pick make for such a job, but I think idiomatic (¿GNU?) make would be abc = a b c .PHONY: run $(abc) run : $(abc) $(abc) : some-command $@ This allows running the three commands in parallel, too: make -j run