I need to create a variable with spaces in my Makefile:
CC=$(LFS_TGT)-gcc -B$(TOOLS)/release/lib/
What is a right way to do that?
UPDATE:
My code does not work, I have an error, something like bash cannot find command -B$(TOOLS)/release/lib/.
makefilevariables
I need to create a variable with spaces in my Makefile:
CC=$(LFS_TGT)-gcc -B$(TOOLS)/release/lib/
What is a right way to do that?
UPDATE:
My code does not work, I have an error, something like bash cannot find command -B$(TOOLS)/release/lib/.
Best Answer
If I've guessed correctly as to what you mean, including extra quoting in the variable definition should work, i.e.: