It appears that $* is getting overwritten by the match from the patsubst function as a side-effect of the underlying Mpp::Text::pattern_substitution routine.
Trying the same rule with GNU make (v3.82) results in the following:
Well spotted! The problem is that the filesubst function is internally used for setting up the rule. I'm still working on trying to separate the internal case from the advertised publicly usable case (which is common to patsubst). No success so far, but I'll get there.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Using makepp version 1.50-1009181-09137-0902101
With this Makeppfile:
I get the following.
It appears that $* is getting overwritten by the match from the patsubst function as a side-effect of the underlying Mpp::Text::pattern_substitution routine.
Trying the same rule with GNU make (v3.82) results in the following:
It looks like the same behavior exists in the latest version of makepp. Has this been seen before and is it considered a bug or a feature?
Well spotted! The problem is that the filesubst function is internally used for setting up the rule. I'm still working on trying to separate the internal case from the advertised publicly usable case (which is common to patsubst). No success so far, but I'll get there.
Fixed in cvs.
Thanks, will try it out.