Follow-up Comment #11, bug #30381 (project make):
Strike my last comment: invoking a rule multiple times in a chain appears to
work just fine.
To prove this, here is a patch against the make 3.82 source that adds a -M
option, which allows this; a test script is included, but string translations
and documentation updates are missing.
The idea is really simple: it replaces rule->in_use with rule->nr_reuses and
compare that number against the value of -M. Note that -M without an argument
means 'infinite' (same as for -j), so it allows rule chaining to go into an
infinite loop.
I will use this as a workaround for myself. I didn't use the idea discussed
below (to allow recursion only when the dependency is shorter than the target)
only because it was slightly harder to implement.
(file #21887)
_______________________________________________________
Additional Item Attachment:
File name: make-3.82-M.diff-Nurd Size:5 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30381>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-make