【 以下文字转载自 Linux 讨论区 】
【 原文由 exihe 所发表 】
I know .o.c depenndence can be written in %.c:%.o pattern
Is it possible to write a rule for filename:filename.o dependence?
something like:
TARGETS =run1 run2
$(TARGETS):%@.o <-----unfortunately it does not recognize %@.o here
$(CC) $< -o $@
Thanks