Suppose I want to try the following:
SHELL:=ssh virtual-machine
# or: SHELL:=ssh virtual-machine bash
.PHONY:
foo:
echo "foo"
# on the command line
make foo
# returns
Unknown cipher type 'echo "foo"'
Revealing that, more or less, "it worked!", but that make
is executing the following:
ssh virtual-machine -c "echo "foo""
Understanding that this is an XY question involving make
and ssh
, my solution-neutral question is:
How does one generate this remote subshell behavior properly using make
?
And, understanding this may be a bad idea or there may be a better way, my specific question is:
Is there a way to customize the way make executes the SHELL
variable?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…