Esses números representam makelevel
, o que nos informa como o sub-make se relaciona com o nível superior make
.
Este é o uso recursivo do make, veja mais detalhes aqui .
Pesquisando no código-fonte make
, você pode ver algo mais claro.
Em main.c
:
/* Value of the MAKELEVEL variable at startup (or 0). */
unsigned int makelevel;
e depois:
/* Figure out the level of recursion. */
{
struct variable *v = lookup_variable (STRING_SIZE_TUPLE (MAKELEVEL_NAME));
if (v && v->value[0] != '/* Use entire sentences to give the translators a fighting chance. */
if (makelevel == 0)
if (starting_directory == 0)
if (entering)
fmt = _("%s: Entering an unknown directory\n");
else
fmt = _("%s: Leaving an unknown directory\n");
else
if (entering)
fmt = _("%s: Entering directory '%s'\n");
else
fmt = _("%s: Leaving directory '%s'\n");
else
' && v->value[0] != '-')
makelevel = (unsigned int) atoi (v->value);
else
makelevel = 0;
}
Em output.c
:
if (makelevel == 0)
if (starting_directory == 0)
sprintf (p, fmt , program);
else
sprintf (p, fmt, program, starting_directory);
else if (starting_directory == 0)
sprintf (p, fmt, program, makelevel);
else
sprintf (p, fmt, program, makelevel, starting_directory);
_outputs (NULL, 0, buf);
E formate a saída antes de imprimir:
/* Value of the MAKELEVEL variable at startup (or 0). */
unsigned int makelevel;
Nota
- Origem tornar