[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: What's the meaning of X_ARCH :sh= /usr/bin/arch
From: |
Xu Yufeng (xyufeng) |
Subject: |
RE: What's the meaning of X_ARCH :sh= /usr/bin/arch |
Date: |
Tue, 24 Nov 2009 13:04:59 +0800 |
Hi Paul,
You've helped me in the exact way. I just did not know where this syntax comes
from. Now I know I can either use solaris make or change :sh= to $(shell).
Thanks,
Xu
-----Original Message-----
From: Paul Smith [mailto:address@hidden
Sent: 星期二, 十一月 24, 2009 12:55 PM
To: Xu Yufeng (xyufeng)
Cc: address@hidden
Subject: Re: What's the meaning of X_ARCH :sh= /usr/bin/arch
On Tue, 2009-11-24 at 10:34 +0800, Xu Yufeng (xyufeng) wrote:
> I'm using make on Solaris. I found lots of ":sh=" in Makefiles from an
> old project. I guess it means to invoke the shell command and return
> the value to a variable but it does not work. I searched the manual
> and google but only found that it can be done with $(shell ...).
> Replacing all of them is a big effort and moreover I'm not quite sure
> about it. Could anybody help me out?
Help you out with what exactly?
The syntax you're referring to is a feature of the Solaris version of make. It
doesn't exist in GNU make.
If you don't want to change your makefiles, then you should continue to use the
Solaris version of make and you won't have to. But searching the GNU make
manuals for information on using Solaris make will not, generally, be
successful. You need to find the documentation for Solaris make.
--
-------------------------------------------------------------------------------
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