About the extension MAKEFLAGSin @bobbogo Answer : if we look at the code, I think I can explain the behavior:
, main make define_makeflags .
static struct variable *
define_makeflags (int all, int makefile)
{
......
main:
1)
define_makeflags (0, 0)->export = v_export;
2)
define_makeflags (1, 0);
3)
/* Set up 'MAKEFLAGS' specially while remaking makefiles. */
define_makeflags (1, 1);
, , .
all false. . all false, define_makeflags " ", j . , switch .
SWAG :
, ifneq define_makeflags . , , MAKEFLAGS , Makefile, .
doc1, doc2:
archive.a: ...
ifneq (,$(findstring t,$(MAKEFLAGS)))
+touch archive.a
+ranlib -t archive.a
else
ranlib archive.a
endif
MAKEFLAGS , , char MAKEFLAGS .
- . , -, , . , .