【发布时间】:2020-03-25 07:00:35
【问题描述】:
这是有罪的makefile:
$ cat -n example.mak
1 define this
2 $(patsubst $(1)/%.o,%.o,why_this_does/that.o)
3 $(patsubst butnot/%.o,%.o, butnot/but_not_that.o)
4 endef
5
6 why:
7 $(info $(call this, why_this_does) ?)
这是我的问题:
$ make -f example.mak
why_this_does/that.o
but_not_that.o ?
make: 'why' is up to date.
【问题讨论】:
标签: function makefile output gnu-make substitution