mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-02-07 04:55:46 +00:00
(record_files): Set double_colon pointer instead of flag.
This commit is contained in:
parent
98104e4d2e
commit
108cca9aa5
1 changed files with 8 additions and 4 deletions
12
read.c
12
read.c
|
@ -1343,11 +1343,15 @@ record_files (filenames, pattern, pattern_percent, deps, commands_started,
|
||||||
"target file `%s' has both : and :: entries",
|
"target file `%s' has both : and :: entries",
|
||||||
f->name);
|
f->name);
|
||||||
f = enter_file (name);
|
f = enter_file (name);
|
||||||
/* If there was an existing entry and it was a
|
/* If there was an existing entry and it was a double-colon
|
||||||
double-colon entry, enter_file will have returned a
|
entry, enter_file will have returned a new one, making it the
|
||||||
new one, making it the prev pointer of the old one. */
|
prev pointer of the old one, and setting its double_colon
|
||||||
|
pointer to the first one. */
|
||||||
|
if (f->double_colon == 0)
|
||||||
|
/* This is the first entry for this name, so we must
|
||||||
|
set its double_colon pointer to itself. */
|
||||||
|
f->double_colon = f;
|
||||||
f->is_target = 1;
|
f->is_target = 1;
|
||||||
f->double_colon = 1;
|
|
||||||
f->deps = this;
|
f->deps = this;
|
||||||
f->cmds = cmds;
|
f->cmds = cmds;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue