%% 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.