Print this page
make: unifdef for MAKE_IT (undefined)


 314                                 return;
 315                         }
 316                 }
 317                 atexit(close_report_file);
 318                 if ((p2= strchr(p+1, ' ')) != NULL)
 319                         *p2= 0;
 320                 target_being_reported_for= (char *)malloc((unsigned)(strlen(p+1)+1));
 321                 (void)strcpy(target_being_reported_for, p+1);
 322                 (void)fputs(p+1, report_file);
 323                 (void)fputs(":", report_file);
 324                 *p= ' ';
 325                 if (p2 != NULL)
 326                         *p2= ' ';
 327         }
 328         if (report_file == (FILE *)-1)
 329                 return;
 330         (void)fputs(name, report_file);
 331         (void)fputs(" ", report_file);
 332 }
 333 
 334 #ifdef MAKE_IT
 335 void
 336 make_it(filename)
 337         register char   *filename;
 338 {
 339         register char   *command;
 340         register char   *argv[6];
 341         register int    pid;
 342         union wait      foo;
 343 
 344         if (getenv(SUNPRO_DEPENDENCIES) == NULL) return;
 345         command= alloca(strlen(filename)+32);
 346         (void)sprintf(command, NOCATGETS("make %s\n"), filename);
 347         switch (pid= fork()) {
 348                 case 0: /* child */
 349                         argv[0]= NOCATGETS("csh");
 350                         argv[1]= NOCATGETS("-c");
 351                         argv[2]= command;
 352                         argv[3]= 0;                     
 353                         (void)dup2(2, 1);
 354                         execve(NOCATGETS("/bin/sh"), argv, environ);
 355                         perror(NOCATGETS("execve error"));
 356                         exit(1);
 357                 case -1: /* error */
 358                         perror(NOCATGETS("fork error"));
 359                 default: /* parent */
 360                         while (wait(&foo) != pid);};
 361 }
 362 #endif
 363 


 314                                 return;
 315                         }
 316                 }
 317                 atexit(close_report_file);
 318                 if ((p2= strchr(p+1, ' ')) != NULL)
 319                         *p2= 0;
 320                 target_being_reported_for= (char *)malloc((unsigned)(strlen(p+1)+1));
 321                 (void)strcpy(target_being_reported_for, p+1);
 322                 (void)fputs(p+1, report_file);
 323                 (void)fputs(":", report_file);
 324                 *p= ' ';
 325                 if (p2 != NULL)
 326                         *p2= ' ';
 327         }
 328         if (report_file == (FILE *)-1)
 329                 return;
 330         (void)fputs(name, report_file);
 331         (void)fputs(" ", report_file);
 332 }
 333 





























 334