[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Canned command sequences

From: Paul D. Smith
Subject: Re: Canned command sequences
Date: Fri, 20 Jun 2003 18:17:45 -0400

%% Ted Stern <address@hidden> writes:

  ts> The essence of what you are asking is, "Why isn't the '@'
  ts> indication of no-echo respected by Make's $(call ) function and
  ts> applied to the entire call?

  ts> IIUC, the answer is that you need to consider how "define/endef"
  ts> differs from a simple variable definition.

  ts> In other words, what the "all" target sees after $(call) is
  ts> evaluated is something like

  ts>        all:
  ts>        <TAB> @set -e; <TAB> echo hello
  ts>        <TAB> echo hello again

  ts> Both '@' and the shell setting 'set -e' are applied only to the
  ts> first shell, so the second line of $(rule_up) is echoed.

  ts> Paul, did I get that right?

Yes, exactly.

In fact, it was a regression in 3.79.1 which allowed it to "work" there,
and I fixed that bug in 3.80.  If you use older versions of GNU make
you'll see they work like 3.80, not 3.79.1.

 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

reply via email to

[Prev in Thread] Current Thread [Next in Thread]