[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnu make: blank before last \ when using strip
From: |
Thomas Lehmann |
Subject: |
gnu make: blank before last \ when using strip |
Date: |
Tue, 23 Sep 2008 08:18:15 -0700 (PDT) |
User-agent: |
G2/1.0 |
Hi,
I have a variable in a makefile containing a valid path and filename.
Following little example:
PATHANDFILENAME := e:/folder/subfolder/name.ext
DUMMY := $(strip $(subst /,\,$(PATHANDFILENAME)))
print-%: ; @echo $* = $($*) \(from $(origin $*)\)
Using this in a small isolated makefile I can check the
variable DUMMY by calling:
make print-DUMMY
...and I will get: "e:\folder\subfolder\name.ext"
In a more complex make environment I get:
"e:\folder\subfolder \name.ext"
You see the blank before the last slash?
Leaving the strip away it is working but then
some other things may fail...
That's my problem. Do you have any idea?
kindly
Thomas
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnu make: blank before last \ when using strip,
Thomas Lehmann <=