I have the following implicit rule in a makefile:
a1 b1: %: %.o
On invocation, this will look for the prerequisites a1.o and b1.o. Instead, I want to replace these prerequisites with a.o and b.o. I’ve played a bit with subst and $(shell) but no luck. Is it possible to do this?
For the limited case:
Alternatively: