help-make
[Top][All Lists]
Advanced

[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: Paul Smith
Subject: Re: What's the meaning of X_ARCH :sh= /usr/bin/arch
Date: Mon, 23 Nov 2009 23:55:04 -0500

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





reply via email to

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