#172595 - vuurrobin - Thu Feb 18, 2010 7:19 pm
hello,
in a makefile I have, I have a macro that may contain spaces and I want to replace those spaces with underscores. I already tried the following:
but none of them works. I also tried it with foreach, but no luck.
google is also of little help.
does anybody know how to do this?
_________________
my blog:
http://vuurrobin.100webcustomers.com/
in a makefile I have, I have a macro that may contain spaces and I want to replace those spaces with underscores. I already tried the following:
Code: |
$(subst ,_,$(strip $(NAME))$(strip $(EXTENTION)))
$(subst \ ,_,$(strip $(NAME))$(strip $(EXTENTION))) $(subst " ",_,$(strip $(NAME))$(strip $(EXTENTION))) $(subst ' ',_,$(strip $(NAME))$(strip $(EXTENTION))) |
but none of them works. I also tried it with foreach, but no luck.
google is also of little help.
does anybody know how to do this?
_________________
my blog:
http://vuurrobin.100webcustomers.com/