最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
makefile和shell文件相互调用方法
时间:2022-06-30 19:02:11 编辑:袖梨 来源:一聚教程网
shell 文件内调用makefile文件:
#!/bin/bash
cd ctemplate-2.1
./configure
sudo make -f install
cd ../
cd TemplateProcesser
make
说明:./configure文件是shell脚本文件,即shell内调用shell文件是很容易的;TemplateProcesser目录内有Makefile文件,调用方式,直接:make
makefile文件内调用shell脚本文件:
SHELL := /bin/bash
test:
@pwd
cd ./TemplateProcesser && pwd
sh ./build.sh
@pwd
说明:build.sh为shell脚本文件。
调用perl文件
/usr/bin/perl *.pl
调用python文件
/usr/bin/env *.py
相关文章
- 上古卷轴4重制版学习魔法方法分享 10-04
- 光与影33号远征队潜水技能获取方法 10-04
- 光与影33号远征队破除障碍技能获取方法 10-04
- 光与影33号远征队前期刷经验方法分享 10-04
- 光与影33号远征队飞流域宅邸隐藏收藏品位置 10-04
- 光与影33号远征队吕涅舞者皮肤获取方法 10-04