Clean up some logic.

This commit is contained in:
Paul Smith 1999-04-13 02:28:27 +00:00
parent a2ea1bd27f
commit 7f3ffd4019

16
main.c
View file

@ -1564,8 +1564,14 @@ int main (int argc, char ** argv)
else
lastgoal->next = 0;
if (goals != 0)
if (!goals)
{
if (read_makefiles == 0)
fatal (NILF, "No targets specified and no makefile found");
fatal (NILF, "No targets");
}
/* Update the goals. */
if (debug_flag)
@ -1591,14 +1597,6 @@ int main (int argc, char ** argv)
default:
abort ();
}
}
else
{
if (read_makefiles == 0)
fatal (NILF, "No targets specified and no makefile found");
else
fatal (NILF, "No targets");
}
/* If we detected some clock skew, generate one last warning */
if (clock_skew_detected)