help-make
[Top][All Lists]
Advanced

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

Re: .ONESHELL target seems not working


From: Luke Shumaker
Subject: Re: .ONESHELL target seems not working
Date: Sun, 26 Dec 2010 00:28:36 -0500

On Sun, 2010-12-26 at 08:37 +0330, ali hagigat wrote:
> makefile21:
> 
> .ONESHELL:
> all:
>       y1=bbeeggiinn;echo $$y1
>       echo $$y1
>       echo eenndd
> 
> /root/makefiles_examples> make -s -f makefile21
> bbeeggiinn
> 
> eenndd
>
----------------------------------------------------------------------------------
> Why the value of the variable, y1, is not recognized by the second
> "echo $$y1" while only one shell is considered for the commands?

Probably because you're using GNU Make 3.81, and .ONESHELL wasn't added
until 3.82

-- 
~ LukeShu
http://lukeshu.ath.cx/




reply via email to

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