>> Isn't the correct solution to have the Makefile contain a rule that
> Yes, that is what we were saying.
The problem is simply a matter of failing to expand indirect references
in that substitution process. I just committed a fix.
regards, tom lane