《六》makefile中sed的用法
在编写makefile的时候,有时会用到比较复杂的功能.
这个时候可以借助shell脚本实现.
本次我们讲解shell中sed的用法.

sed格式
其中脚本命令的格式
举例:(替换test.txt中的文本,用新字符串替换其中的旧字符串)


shell中的一种应用举例:
sed 's,\(.*\)\.o[ :]*,objs/\1.o: ,g' < $@.tmp > $@ ;
参考:
驾驭Makefile---李云
http://c.biancheng.net/view/4028.html
https://www.runoob.com/linux/linux-comm-sed.html?ivk_sa=1023231z
https://www.linuxprobe.com/sed-linux.html