bug-make
[Top][All Lists]
Advanced

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

Re: Makefile: Space Character in Assignments


From: Paul Smith
Subject: Re: Makefile: Space Character in Assignments
Date: Wed, 01 Apr 2009 08:12:37 -0400

On Tue, 2009-03-31 at 23:59 -0500, Hamed Janzadeh wrote:
> Last night I found a very cruel bug in GNU make that led to a costly
> experience for me. Hence, I decided to report it and to help others
> not to repeat my experiment.
> 
> In a Makefile, and in assignment operations, the space character after
> the value is included to the value by `make'. Therefore, if I have an
> assignment like this:

This is not a bug; it's documented behavior which is required by the
POSIX standard for make.  In fact there was just a thread about this on
the help mailing list over the weekend.

PS.  ObCaution: In general, it's not a good idea to run make as root.
Especially when you're not sure the makefile is correct.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.us
 "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]