Creating output file from makefile