help-make
[Top][All Lists]
Advanced

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

Re: Pb with normal and implicit rules


From: Paul D. Smith
Subject: Re: Pb with normal and implicit rules
Date: Wed, 10 Jul 2002 12:38:27 -0400

%% Philippe HAUTION <address@hidden> writes:

  ph> You're right, the result of your debugging line is :
  ph> ../objd/sources /%.o  ../objr/sources /%.o

  ph> so the value of the ssp variable does contain a space, but none of
  ph> the directory in my paths does ?!  What could be adding this space
  ph> at the end of sources ?

Two possibilities:

 1) Your basename program is adding it to the output, which is pretty
    unlikely unless you have a very bizarre basename,

 2) Or, more likely, you have left a trailing whitespace char on the ssp
    variable assignment:

        ssp := $(shell ...) 
                           ^

    Remember that _trailing_ whitespace is _preserved_ during variable
    assignment (see the GNU make manual).  Personally I set my editor
    (Emacs) to automatically strip all trailing whitespace in makefiles.

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