mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-26 14:00:56 +00:00
(main): Handle 1 and 2 returns from update_goal_chain makefile run
properly.
This commit is contained in:
parent
3a12be3a73
commit
bdbe8501c6
1 changed files with 5 additions and 2 deletions
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 a new issue