Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在我的 Makefile 中创建一个带有空格的变量:
CC=$(LFS_TGT)-gcc -B$(TOOLS)/release/lib/
这样做的正确方法是什么?
更新: 我的代码不起作用,我有一个错误,比如 bash 找不到命令 -B$(TOOLS)/release/lib/。
如果我猜对了你的意思,包括在变量定义中的额外引用应该可以工作,即:
TOOLS = 'dir with spaces' CC = $(LFS_TGT)-gcc -B$(TOOLS)/release/lib/