Follow-up Comment #1, bug #61042 (project make): sv_61042_implicit_rule_search_logging.diff has the following
Changes in the implicit rule search logging: 1. The messages which refer to a rule print the first line (the targets and prerequisites) of the rule. 2. A new message tells when a rule is rejected, along with the reason. 3. The 'Looking for an implicit rule...' message is printed for every prerequisite, rather than the top level target only. 4. "Trying harder" message is printed, when intermediate prerequisites are allowed. 5. The 'No rule found...' and 'Found implicit rule...' messages are printed for every prerequisite, rather than the top level target only. 6. "Ought to exist...", "Found..." or "Not found..." message is printed for each prerequisite. This is the diagnostics of the same example above with enhanced logging. $ ~/src/gmake/make/l64/make -R --debug=implicit hello.o |tail +9 Updating goal targets.... File 'hello.o' does not exist. Looking for an implicit rule for 'hello.o'. Trying pattern rule '%.o: %.c' with stem 'hello'. Trying implicit prerequisite 'hello.c'. Not found 'hello.c'. Trying harder. Trying pattern rule '%.o: %.c' with stem 'hello'. Trying implicit prerequisite 'hello.c'. Looking for a rule with intermediate file 'hello.c'. Avoiding implicit rule recursion for rule '%.o: %.c'. No implicit rule found for 'hello.c'. Rejecting rule '%.o: %.c' due to impossible prerequisite 'hello.c'. No implicit rule found for 'hello.o'. Must remake target 'hello.o'. make: *** No rule to make target 'hello.o'. Stop. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?61042> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/