<div dir="ltr">Well, I want to run an excutable when build like the following makefile:<div>2 : 2.cpp</div><div> g++ 2.cpp -o 2</div><div><br></div><div>2.cpp : gen</div><div> gen 2.txt -o 2.cpp</div><div><br></div><div>
gen : gen.cpp</div><div> g++ gen.cpp -o gen</div><div><br></div><div style>So what should I do?</div><div style>I just have learnt how to build a simple project,</div><div><div><br></div>-- <br><div style="text-align:right">
清华大学计算机系</div><div style="text-align:right">Tsinghua University CST</div><div style="text-align:right">王东岳</div><div style="text-align:right">Dongyue.Wang</div>
</div></div>