|
From: | Martin d'Anjou |
Subject: | ssh, $(MAKE) and -n weirdness |
Date: | Mon, 14 Jul 2008 22:46:08 -0400 (EDT) |
User-agent: | Alpine 1.00 (LRH 882 2007-12-20) |
Hello,Can someone explain why the remote1 and the remote2 targets respond differently to passing the -n switch in the following makefile?
$ cat makefile remote=localhost remote1: ssh $(remote) "cd $(PWD) && $(MAKE) -f makefile this" remote2: ssh $(remote) "cd $(PWD) && make -f makefile this" this: @echo This is done! $ make remote1 -n ssh localhost "cd /home/me && make -f makefile this" This is done! $ make remote2 -n ssh localhost "cd /home/me && make -f makefile this" $ What I do not understand is why "remote1" is built even though I pass -n? Thanks, Martin
[Prev in Thread] | Current Thread | [Next in Thread] |