mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-02-12 08:38:47 +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))
|
switch (update_goal_chain (read_makefiles, 1))
|
||||||
{
|
{
|
||||||
|
case 1:
|
||||||
|
assert ("Status indicates -q set while remaking makefiles!");
|
||||||
default:
|
default:
|
||||||
abort ();
|
assert ("bogus status from update_goal_chain");
|
||||||
|
break;
|
||||||
|
|
||||||
case -1:
|
case -1:
|
||||||
/* Did nothing. */
|
/* Did nothing. */
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1:
|
case 2:
|
||||||
/* Failed to update. Figure out if we care. */
|
/* Failed to update. Figure out if we care. */
|
||||||
{
|
{
|
||||||
/* Nonzero if any makefile was successfully remade. */
|
/* Nonzero if any makefile was successfully remade. */
|
||||||
|
|
Loading…
Reference in a new issue