mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-10-24 05:09:57 +00:00
Formerly remake.c.~35~
This commit is contained in:
parent
a1849dfc5f
commit
44251cbc0c
1 changed files with 17 additions and 4 deletions
21
remake.c
21
remake.c
|
@ -569,11 +569,24 @@ notice_finished_file (file)
|
||||||
it had some recursive commands, and they lost. */
|
it had some recursive commands, and they lost. */
|
||||||
&& file->update_status != 1)
|
&& file->update_status != 1)
|
||||||
{
|
{
|
||||||
if (file->phony)
|
if (file->cmds != 0 && file->cmds->any_recurse)
|
||||||
file->update_status = 0;
|
{
|
||||||
|
/* If all the command lines were recursive,
|
||||||
|
we don't want to do the touching. */
|
||||||
|
unsigned int i;
|
||||||
|
for (i = 0; i < file->cmds->ncommand_lines; ++i)
|
||||||
|
if (!file->cmds->lines_recurse[i])
|
||||||
|
goto have_nonrecursing;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
/* Should set file's modification date and do nothing else. */
|
{
|
||||||
file->update_status = touch_file (file);
|
have_nonrecursing:
|
||||||
|
if (file->phony)
|
||||||
|
file->update_status = 0;
|
||||||
|
else
|
||||||
|
/* Should set file's modification date and do nothing else. */
|
||||||
|
file->update_status = touch_file (file);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!file->phony)
|
if (!file->phony)
|
||||||
|
|
Loading…
Reference in a new issue