shell 文件内调用makefile文件:

 
#!/bin/bash
cd ctemplate-2.1
./configure
sudo make 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脚本文件。

相关文章:

  • 2022-02-20
  • 2021-06-29
  • 2021-06-12
  • 2021-07-16
  • 2022-02-03
  • 2021-09-08
  • 2022-12-23
猜你喜欢
  • 2022-01-30
  • 2022-12-23
  • 2022-02-26
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2021-09-28
相关资源
相似解决方案