#NEWLINE# def completeFile( self , outputs ) : #NEWLINE# #INDENT# for filename in self . filenamesList : #NEWLINE# #INDENT# filehandle = self . filehandles [ filename ] #NEWLINE# key = ( str ( 111 ) if ( not self . isMultipleMakefiles ) else self . keys [ filename ] ) #NEWLINE# print ( '### Generate a file indicating successful execution of makefile' , file = filehandle ) #NEWLINE# print ( '$(COMPLETE_OK): ' , end = '' , file = filehandle ) #NEWLINE# for filename in outputs [ key ] : #NEWLINE# #INDENT# print ( filename , end = ' ' , file = filehandle ) #NEWLINE# #UNINDENT# print ( file = filehandle ) #NEWLINE# print ( '\t@rm -f $(MAKEFILE_ID).make' , file = filehandle ) #NEWLINE# print ( '\t@if test ! -f $(EXECUTED); then \\' , file = filehandle ) #NEWLINE# print ( "\t  echo '==================================='; \\" , file = filehandle ) #NEWLINE# print ( "\t  echo '  WARNING: No new files generated.'; \\" , file = filehandle ) #NEWLINE# print ( "\t  echo '==================================='; \\" , file = filehandle ) #NEWLINE# print ( '\t  echo ; \\' , file = filehandle ) #NEWLINE# print ( "\t  echo 'All required output files already exist, so none of the tasks in the pipeline were executed.'; \\" , file = filehandle ) #NEWLINE# print ( "\t  echo 'To force execution of the pipeline remove output files prior to execution of gkno.'; \\" , file = filehandle ) #NEWLINE# print ( '\telse \\' , file = filehandle ) #NEWLINE# print ( '\t  touch $(COMPLETE_OK); \\' , file = filehandle ) #NEWLINE# print ( '\tfi' , file = filehandle ) #NEWLINE# print ( '\t@rm -f $(EXECUTED)' , file = filehandle )