17

What's the significance of the number in the square brackets in Make's output?

make[7]: Leaving directory '/home/mike/...'
make[6]: Leaving directory '/home/mike/...'
make[6]: Entering directory '/home/mike/...'

Is make multi threaded and this is the thread's number, or is it the level of makefile traversal, or what exactly? It's larger numbers on my big projects, but on my personal ones (with just a few source files) it's typically make[1] so I assume it has to do with the complexity.

I can't seem to find this in the documentation.

1 Answer 1

22

Make has the ability to call other makefile within itself. The number in the brackets is the number of makefile called from your root makefile.

2
  • OK, that's what I was thinking. (Root being 1 correct?) That actually helps a lot. :)
    – Mike
    Oct 11, 2012 at 15:01
  • @tomahh do you have some sources ? Is it in the official GNU make manual ?
    – Tesla123
    Sep 26, 2022 at 16:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.