我正在尝试从新生成的文件夹中获取 .tar.gz 文件名(以上一步)。我尝试使用通配符,但没有运气,
在我的makefile中,我尝试了:
...
...
...
other parts
...
deb:
python setup.py sdist --- this step will generate a new folder called dist
cd dist; ls -l --- from here, I see the file is shown.
echo $(wildcard dist/*.tar.gz) (also tried dist/pylink*.tar.gz, dist/*.gz) --fails!
我用 make -f makefile deb 运行它。
我总是从通配符中一无所获
但是如果我离开python生成的文件夹,重新运行上面的文件,我可以看到文件名被写入了控制台。有谁知道为什么?我应该如何获取文件名?我需要使用文件名并将文件名扩展到另一个文件名。
非常感谢!