mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-02-10 23:43:44 +00:00
(start_job_command): Remember to call notice_finsihed_file under -n when
not recursing. To do this, consolidate that code under the empty command case and goto there for the -n case.
This commit is contained in:
parent
551c4322cb
commit
c5af4810ff
1 changed files with 2 additions and 4 deletions
6
job.c
6
job.c
|
@ -592,6 +592,7 @@ start_job_command (child)
|
||||||
|
|
||||||
if (argv == 0)
|
if (argv == 0)
|
||||||
{
|
{
|
||||||
|
next_command:
|
||||||
/* This line has no commands. Go to the next. */
|
/* This line has no commands. Go to the next. */
|
||||||
if (job_next_command (child))
|
if (job_next_command (child))
|
||||||
start_job_command (child);
|
start_job_command (child);
|
||||||
|
@ -624,10 +625,7 @@ start_job_command (child)
|
||||||
{
|
{
|
||||||
free (argv[0]);
|
free (argv[0]);
|
||||||
free ((char *) argv);
|
free ((char *) argv);
|
||||||
if (job_next_command (child))
|
goto next_command;
|
||||||
start_job_command (child);
|
|
||||||
child->file->update_status = 0;
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Flush the output streams so they won't have things written twice. */
|
/* Flush the output streams so they won't have things written twice. */
|
||||||
|
|
Loading…
Reference in a new issue