折腾:
【已解决】gitbook中book.json中能否把公共部分提取出来
期间,需要去搞清楚,如何才能在Makefile中运行python脚本文件
makefile run python
Invoke python script through make command – Unix & Linux Stack Exchange
Python Script Executed with Makefile – Stack Overflow
<code>foo: do-foo.py python do-foo.py > foo </code>
好像就满足我的需求了?
Makefiles in python projects | Krzysztof Żuraw Blog
<code>run: python manage.py runserver </code>
Automation and Make: Makefiles
<code># Count words. isles.dat : books/isles.txt python countwords.py books/isles.txt isles.dat </code>
【总结】
<code>xxx: yyy.py python yyy.py </code>
即可。
后来用的是:
<code>## Debug for makefile call python debug_python: @python ../generateBookJson.py ## Generate book.json from ../book_common.json and book_current.json generate_book_json: clean_generated_book_json @python ../generateBookJson.py </code>
其中@表示此行makefile的语句不输出
转载请注明:在路上 » 【已解决】Makefile中运行Python脚本文件