help-make
[Top][All Lists]
Advanced

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

RE: why does $$(shell bomb with a semicolon during SECONDEXPANSION?


From: Paul Smith
Subject: RE: why does $$(shell bomb with a semicolon during SECONDEXPANSION?
Date: Tue, 13 Dec 2011 18:44:29 -0500

On Tue, 2011-12-13 at 14:51 -0800, Mark Galeck (CW) wrote:
> Hmm, I did try that, did not work for me, same error (but Philip's solution 
> works)
> 
> >Another solution that works here is to use backslashes:
> 
>         foobar: $$(shell echo prereq\;)

Ah right.  That's a bug that was fixed since 3.82 was released.  Works
now in the current latest sources:

$ cat Makefile
.SECONDEXPANSION:
all: $$(shell echo prereq\;)
        @echo hi

$ ~/src/make/make-rel/make
make: *** No rule to make target `prereq', needed by `all'.  Stop.

But Philip's solution works as well as you point out.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "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]