标签:
clean: -rm main.o 2.o 3.o install: myapp @if [ -d $(INSTDIR) ]; then cp myapp $(INSTDIR); chmod a+x $(INSTDIR)/myapp; chmod og-w $(INSTDIR)/myapp; echo "Installed in $(INSTDIR)"; else echo "Sorry, $(INSTDIR) does not exist"; fiMakefile3中有几处需要注意(如上所示):
linux程序设计——make命令和makefile文件(第九章)
标签:
原文地址:http://blog.csdn.net/yiranant/article/details/46663339