diff options
author | Roland McGrath <roland@redhat.com> | 1995-03-24 23:27:05 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1995-03-24 23:27:05 +0000 |
commit | bdbe8501c662d4087c080deb6b258ac92f15f158 (patch) | |
tree | 5c8ef772deea3d5de85460720da8f0f226a4a89d | |
parent | 3a12be3a73ed197ba9c45ee493884a6aefddaa07 (diff) | |
download | gunmake-bdbe8501c662d4087c080deb6b258ac92f15f158.tar.gz |
(main): Handle 1 and 2 returns from update_goal_chain makefile run
properly.
-rw-r--r-- | main.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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. */ |