擅长:python、mysql、java
<p>尝试将类似的内容放入<code>Makefile</code>:</p>
<pre><code>all: myprogram
chmod 755 myprogram
</code></pre>
<p>将<code>myprogram</code>注册为<code>all</code>目标的依赖项。在</p>
<p>注意,第二行应该以硬制表符开始,而不是空格,因为makefile对缩进非常特别。在</p>
<p>关于shell脚本:有两种编写方法。在</p>
^{pr2}$
<p>这将把脚本的前两个参数传递给python程序。在</p>
<p>但是,如果你这么做</p>
<pre><code>python myprogram.py $@
</code></pre>
<p>然后传递给shell脚本的所有参数都将通过传播到python程序。在</p>