[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: target-specific 'define'd variables (3.80)?
From: |
Paul D. Smith |
Subject: |
Re: target-specific 'define'd variables (3.80)? |
Date: |
Tue, 6 Jul 2004 11:55:39 -0400 |
%% Boris Kolpackov <address@hidden> writes:
bk> "Paul D. Smith" <address@hidden> writes:
>> %% Will Partain <address@hidden> writes:
>>
wp> Hi; I don't know if the little Makefile below *ought* to
wp> work or not; it seems it should.
>>
>> No. define/endef is not supported directly in kernel-specific
>> variables. The entire definition must fit onto one logical line.
bk> BTW, do you see any reason why it couldn't be done other than
bk> nobody just needed it until now?
I don't see any reason technically that it couldn't be done. The parser
would need to be massaged somewhat. I can't remember whether the
function that parses define/endef also creates the variable, or whether
it just returns a string containing the value and the caller creates the
variable; if the former it should be pretty simple. If the latter a bit
less tidy. Offhand I'd guess it's the latter.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist