Print this page
make: unifdef for MAKE_IT (undefined)

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/make/lib/vroot/report.cc
          +++ new/usr/src/cmd/make/lib/vroot/report.cc
↓ open down ↓ 323 lines elided ↑ open up ↑
 324  324                  *p= ' ';
 325  325                  if (p2 != NULL)
 326  326                          *p2= ' ';
 327  327          }
 328  328          if (report_file == (FILE *)-1)
 329  329                  return;
 330  330          (void)fputs(name, report_file);
 331  331          (void)fputs(" ", report_file);
 332  332  }
 333  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  334  
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX