mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-01-31 03:25:08 +00:00
(read_all_makefiles): Properly append default makefiles to the end of the
`read_makefiles' chain.
This commit is contained in:
parent
b2fc502c55
commit
f9a914c035
1 changed files with 3 additions and 0 deletions
3
read.c
3
read.c
|
@ -192,6 +192,9 @@ read_all_makefiles (makefiles)
|
||||||
/* No default makefile was found. Add the default makefiles to the
|
/* No default makefile was found. Add the default makefiles to the
|
||||||
`read_makefiles' chain so they will be updated if possible. */
|
`read_makefiles' chain so they will be updated if possible. */
|
||||||
struct dep *tail = read_makefiles;
|
struct dep *tail = read_makefiles;
|
||||||
|
/* Add them to the tail, after any MAKEFILES variable makefiles. */
|
||||||
|
while (tail != 0 && tail->next != 0)
|
||||||
|
tail = tail->next;
|
||||||
for (p = default_makefiles; *p != 0; ++p)
|
for (p = default_makefiles; *p != 0; ++p)
|
||||||
{
|
{
|
||||||
struct dep *d = (struct dep *) xmalloc (sizeof (struct dep));
|
struct dep *d = (struct dep *) xmalloc (sizeof (struct dep));
|
||||||
|
|
Loading…
Reference in a new issue