2024-06-26 02:05:56 发布
网友
我从Makefile中摘录了以下内容:
topDirectory := ./ # This print nothing $(info $(topDirectory)) # and as a result, myScript.py complains that I'm missing a parameter $(shell python myScript.py $(topDirectory))
如何让./展开到它在命令行上引用的绝对路径?在
./
Make automatically takes in all shell environment variables and makes them make variables。在
这意味着$PWD是一个make变量,是指向当前工作目录的完整展开路径。你可能想用它来代替。在
$PWD
Make automatically takes in all shell environment variables and makes them make variables。在
这意味着
$PWD
是一个make变量,是指向当前工作目录的完整展开路径。你可能想用它来代替。在相关问题 更多 >
编程相关推荐