usr.bin/make/job.c
/*
 *-----------------------------------------------------------------------
 * Job_End --
 *	Do final processing such as the running of the commands
 *	attached to the .END target. 
 *
 * Results:
 *	Number of errors reported.
 *
 * Side Effects:
 *	The process' temporary file (tfile) is removed if it still
 *	existed.
 *-----------------------------------------------------------------------
 */
Job_End
Do final processing such as the running of the commands
attached to the .END target.

Number of errors reported.

Side Effects:
The process' temporary file (tfile) is removed if it still
existed.
Job_End Do final processing such as the running of the commands attached to the . END target . Number of errors reported . Side Effects : The process ' temporary file ( tfile ) is removed if it still existed .
int
Job_End ()
{
    if (postCommands != NILGNODE && !Lst_IsEmpty (postCommands->commands)) {
	if (errors) {
	    Error ("Errors reported so .END ignored");
	} else {
	    JobStart (postCommands, JOB_SPECIAL | JOB_IGNDOTS,
		       (Job *)0);
	    while (nJobs) {
		Job_CatchOutput();
#ifndef RMT_WILL_WATCH
		Job_CatchChildren (!usePipes);
#endif 
	    }
	}
    }
    (void) unlink (tfile);
    return(errors);
}
int Job_End ( ) { if ( postCommands != NILGNODE && ! Lst_IsEmpty ( postCommands -> commands ) ) { if ( errors ) { Error ( " " ) ; } else { JobStart ( postCommands , JOB_SPECIAL | JOB_IGNDOTS , ( Job * ) 0 ) ; while ( nJobs ) { Job_CatchOutput ( ) ; #ifndef RMT_WILL_WATCH Job_CatchChildren ( ! usePipes ) ; #endif } } } ( void ) unlink ( tfile ) ; return ( errors ) ; }
Job_End
      Do final processing such as the running of the commands
      attached to the .END target.
Job_End Do final processing such as the running of the commands attached to the . END target .
/* RMT_WILL_WATCH */