Follow-up Comment #3, bug #67804 (group make): I don't think I understand what you're saying. The enter/leave message is only printed when a new make instance starts (or exits). It's not printed when every recipe is started.
Using -C causes the enter/leave will be printed once at the beginning of the
build, but beyond that it's still only printed when a sub-make is invoked.
Also just to note: it has nothing to do with -O.
Example:
$ cat makefile
all: a b c d
a b c d: ; @echo $@
$ make
a
b
c
d
$ make -C $(pwd)
make: Entering directory '/tmp/test'
a
b
c
d
make: Leaving directory '/tmp/test'
But if I add a sub-make invocation:
$ cat makefile
all: a.sub b.sub c.sub d.sub
%.sub: ; @$(MAKE) $*
a b c d: ; @echo $@
$ make
make[1]: Entering directory '/tmp/test'
a
make[1]: Leaving directory '/tmp/test'
make[1]: Entering directory '/tmp/test'
b
make[1]: Leaving directory '/tmp/test'
make[1]: Entering directory '/tmp/test'
c
make[1]: Leaving directory '/tmp/test'
make[1]: Entering directory '/tmp/test'
d
make[1]: Leaving directory '/tmp/test'
$ make -C $(pwd)
make: Entering directory '/tmp/test'
make[1]: Entering directory '/tmp/test'
a
make[1]: Leaving directory '/tmp/test'
make[1]: Entering directory '/tmp/test'
b
make[1]: Leaving directory '/tmp/test'
make[1]: Entering directory '/tmp/test'
c
make[1]: Leaving directory '/tmp/test'
make[1]: Entering directory '/tmp/test'
d
make[1]: Leaving directory '/tmp/test'
make: Leaving directory '/tmp/test'
I recommend you figure out how to force your build system to not hide all the
commands its invoking from you, so you can see what it's really doing
underneath. Depending in how it's implemented, you may have luck by adding
*V=1* or *VERBOSE=1* to the make command line.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67804>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
