[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Testing the name of a variable passed to a Makefile
From: |
Paul Smith |
Subject: |
Re: Testing the name of a variable passed to a Makefile |
Date: |
Mon, 04 Apr 2011 07:58:02 -0400 |
On Mon, 2011-04-04 at 09:53 +0200, José Luis García Pallero wrote:
> So my question is, how can I detect if some string (gcc, for example)
> is contained in other string (an input argument, for example)?
Look up the $(findstring ...) function in the GNU make manual section on
"Functions for String Substitution and Analysis".
--
-------------------------------------------------------------------------------
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