新建Makefile文件

PROJECT_PATH=/root/shell

hello:
        PROJECT_DIR=$(PROJECT_PATH) bash $(PROJECT_PATH)/hello.sh

world:
        bash /root/shell/world.sh

  

hello.sh

#!/bin/bash
echo "hello"

  

world.sh

#!/bin/bash
echo "world"

  

执行make hello  

输出hello 

 

相关文章:

  • 2022-01-20
  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
猜你喜欢
  • 2022-01-02
  • 2021-12-21
  • 2022-01-02
  • 2022-01-11
  • 2022-01-18
  • 2021-08-06
相关资源
相似解决方案