通过本文主要向大家介绍了makefile 执行shell,makefile shell,makefile shell函数,linux makefile,linux makefile教程等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
shell 文件内调用makefile文件:
#!/bin/bash cd ctemplate-2.1 ./configure sudo make -f install cd ../ cd TemplateProcesser make</div>
说明:./configure文件是shell脚本文件,即shell内调用shell文件是很容易的;TemplateProcesser目录内有Makefile文件,调用方式,直接:make
makefile文件内调用shell脚本文件:
SHELL := /bin/bash test: @pwd cd ./TemplateProcesser && pwd sh ./build.sh @pwd</div>
说明:build.sh为shell脚本文件。
调用perl文件 /usr/bin/perl *.pl 调用python文件 /usr/bin/env *.py</div>
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
</div>
