Re: [问题] makefile语法疑问

楼主: gusion   2022-12-07 00:49:52
如果recipe的部分都是相同的,只是target有的有%有的没有
那也可以考虑动态生成rule
概念就是从source变量把target一个一个抓出来,动态生出
target1:
recipe
target2:
recipe
...
具体作法如下:

Links booklink

Contact Us: admin [ a t ] ucptt.com