如何在Makefi中将./to绝对路径展开

2024-06-26 02:05:56 发布

您现在位置:Python中文网/ 问答频道 /正文

我从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))

如何让./展开到它在命令行上引用的绝对路径?在


Tags: andpyinfothatparameterasresultthis