Dear Tiphaine, Sure, I understand your use case a bit better.
Yesterday I tried to hack something which failed but let me share it anyway, just in case it inspires you or somebody else. Imagine for each target that uses additional dependencies you could write them in a variable like foo_prereqs = additiional prerequisites specific to foo and then you would be able to add a pattern-specific variable to your rule, like %.t: %.x $(%_prereqs) It didn't work, unfortunately. I also tried with the eval function and as far as I could try that was not more successful but perhaps from here you or somebody else can see how to proceed. Best wishes, Sébastien. _______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make