summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2002-04-20 19:25:54 +0000
committerPaul Smith <psmith@gnu.org>2002-04-20 19:25:54 +0000
commitdad29566b34017a548ba56469147a5398c3334df (patch)
tree7bdd3704b8b96a8919959fb1ce20f971ae6a1cd4 /main.c
parentd242ee90535385a33f5b32069220d8f547a52373 (diff)
downloadgunmake-dad29566b34017a548ba56469147a5398c3334df.tar.gz
Updates to translaations.
Fix an assert() in an obscure use of -q Handling of double-colon timestamp updates was broken in a bizarre way. Store arguments to $(call ...) functions in simple variables, not recursive variables.
Diffstat (limited to 'main.c')
-rw-r--r--main.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/main.c b/main.c
index dfde0a8..5b05e4b 100644
--- a/main.c
+++ b/main.c
@@ -1677,10 +1677,11 @@ int main (int argc, char ** argv)
switch (update_goal_chain (read_makefiles, 1))
{
case 1:
- default:
-#define BOGUS_UPDATE_STATUS 0
- assert (BOGUS_UPDATE_STATUS);
- break;
+ /* The only way this can happen is if the user specified -q and asked
+ * for one of the makefiles to be remade as a target on the command
+ * line. Since we're not actually updating anything with -q we can
+ * treat this as "did nothing".
+ */
case -1:
/* Did nothing. */
@@ -1860,6 +1861,11 @@ int main (int argc, char ** argv)
exit (0);
#endif
/* NOTREACHED */
+
+ default:
+#define BOGUS_UPDATE_STATUS 0
+ assert (BOGUS_UPDATE_STATUS);
+ break;
}
db_level = orig_db_level;