]> git.ipfire.org Git - thirdparty/make.git/commit
Clean up depth handling in debug output
authorPaul Smith <psmith@gnu.org>
Sat, 18 Feb 2023 21:08:51 +0000 (16:08 -0500)
committerPaul Smith <psmith@gnu.org>
Sun, 19 Feb 2023 06:25:57 +0000 (01:25 -0500)
commit2449ef3c88e6b1369137681c3a7370d777c332c1
tree2c6a333fcf24eeab3733873ca46abf8b606a07c2
parentfbf8c940e529934df53fb70d3f7b5f224cd77597
Clean up depth handling in debug output

The indentation shown in debug output was misleading.  Increment the
depth when we are working on a prerequisite, not for the current
target.

* src/remake.c (check_dep): Increment depth only on recursion.
(update_file_1): Ditto.  Don't show "Finished..." if prereqs are
still running.
* src/implicit.c (pattern_search): Increment depth for the entire
search.
* tests/scripts/features/output-sync: Support debug output when run
by hand.
src/implicit.c
src/remake.c
tests/scripts/features/output-sync