]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 58735] Define the order that makefiles are rebuilt.
authorPaul Smith <psmith@gnu.org>
Sun, 19 Jul 2020 17:56:23 +0000 (13:56 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 19 Jul 2020 17:56:23 +0000 (13:56 -0400)
commit62e8f029e9bd0a2418409f6d6902824c3110515e
tree019c47eeb8e7588d631ce6d744d28a0bef07910b
parentdb7658e0425b37f4d3abe88cee01280b26518a92
[SV 58735] Define the order that makefiles are rebuilt.

Ensure that makefiles are rebuilt in the order in which make first
considered them, and document this behavior in the manual.

* NEWS: Add a note about the new behavior
* doc/make.text (How make Processes a Makefile): Document it.
* main.c (main): Inverse the list of makefile goals.
* read.c (read_all_makefiles): Add default makefiles to the list at
the front in reverse order, the same way other makefiles are added.
* tests/scripts/features/include: Add tests to verify rebuild order.
NEWS
doc/make.texi
src/main.c
src/read.c
tests/scripts/features/include