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.
我有一个 Python 程序prog.py,我想在一个文件上运行input,然后将其输出写入 output.txt.
prog.py
input
output.txt
在终端中,如果我输入:
$ python prog.py < input.py > output.txt
现在,我想要一个做同样事情的makefile。我该怎么做呢?
在您的 makefile 中只需:
all: python prog.py < input.py > output.txt