mirror of
https://github.com/mirror/make.git
synced 2025-01-16 23:31:08 +08:00
(main): Handle 1 and 2 returns from update_goal_chain makefile run
properly.
This commit is contained in:
parent
3a12be3a73
commit
bdbe8501c6
7
main.c
7
main.c
@ -923,14 +923,17 @@ main (argc, argv, envp)
|
||||
|
||||
switch (update_goal_chain (read_makefiles, 1))
|
||||
{
|
||||
case 1:
|
||||
assert ("Status indicates -q set while remaking makefiles!");
|
||||
default:
|
||||
abort ();
|
||||
assert ("bogus status from update_goal_chain");
|
||||
break;
|
||||
|
||||
case -1:
|
||||
/* Did nothing. */
|
||||
break;
|
||||
|
||||
case 1:
|
||||
case 2:
|
||||
/* Failed to update. Figure out if we care. */
|
||||
{
|
||||
/* Nonzero if any makefile was successfully remade. */
|
||||
|
Loading…
Reference in New Issue
Block a user