Makefile文件中调用python文件及perl文件的方法
实例代码如下
perl.pl
#!/usr/bin/perl
print("hello, perl\n")
python.py
#!/usr/bin/env python
print("hello, python\n")
Makefile
.PHONY:all
all:
@echo "------- execute perl file ---------"
@/usr/bin/perl perl.pl
@echo "------- execute python
file ---------"
@/usr/bin/env python python.py