mirror of
https://github.com/mirror/make.git
synced 2025-02-06 17:50:48 +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))
|
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 New Issue
Block a user