summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-11-16 23:59:17 +0000
committerRoland McGrath <roland@redhat.com>1992-11-16 23:59:17 +0000
commit4125f8f08e37080406f5f293838f2ab022c21116 (patch)
treed93fae4d2629eb52687487caf08207dd091800de /main.c
parent45649948dbef1729a6243349b3b90948365f0dbe (diff)
downloadgunmake-4125f8f08e37080406f5f293838f2ab022c21116.tar.gz
Formerly main.c.~62~
Diffstat (limited to 'main.c')
-rw-r--r--main.c58
1 files changed, 28 insertions, 30 deletions
diff --git a/main.c b/main.c
index 81ca642..f5a43da 100644
--- a/main.c
+++ b/main.c
@@ -769,39 +769,37 @@ main (argc, argv, envp)
{
register struct file *f = d->file;
if (f->double_colon)
- {
- do
- {
- if (f->deps == 0 && f->cmds != 0)
- {
- /* This makefile is a :: target with commands, but
- no dependencies. So, it will always be remade.
- This might well cause an infinite loop, so don't
- try to remake it. (This will only happen if
- your makefiles are written exceptionally
- stupidly; but if you work for Athena, that's how
- you write your makefiles.) */
-
- if (debug_flag)
- printf ("Makefile `%s' might loop; not remaking it.\n",
- f->name);
-
- if (last == 0)
- read_makefiles = d->next;
- else
- last->next = d->next;
+ do
+ {
+ if (f->deps == 0 && f->cmds != 0)
+ {
+ /* This makefile is a :: target with commands, but
+ no dependencies. So, it will always be remade.
+ This might well cause an infinite loop, so don't
+ try to remake it. (This will only happen if
+ your makefiles are written exceptionally
+ stupidly; but if you work for Athena, that's how
+ you write your makefiles.) */
+
+ if (debug_flag)
+ printf ("Makefile `%s' might loop; not remaking it.\n",
+ f->name);
+
+ if (last == 0)
+ read_makefiles = d->next;
+ else
+ last->next = d->next;
- /* Free the storage. */
- free ((char *) d);
+ /* Free the storage. */
+ free ((char *) d);
- d = last == 0 ? 0 : last->next;
+ d = last == 0 ? 0 : last->next;
- break;
- }
- f = f->prev;
- }
- while (f != NULL);
- }
+ break;
+ }
+ f = f->prev;
+ }
+ while (f != NULL);
if (f == NULL || !f->double_colon)
{
if (makefile_mtimes == 0)