Altera_Forum
Honored Contributor
12 years agoCorrection to Makefile
Hello,
I have found projects that contain library dependencies always relink to create the final ELF file even if nothing has changed. Although this isn't wrong or bad, it does cause creation dates to be later than the actual project modifications made. This ELF update also causes unnecessary backups and shows a modified status in version control. I have found this to be caused from new Makefile changes that support tracking changed build configurations by copying the configuration output file to the base folder. This is done using: $(LIB) : $(ACTIVE_CONFIG_LIB)
$(CP) $< $@ where $(CP) is CP := cp -f The problem is the copy (CP) is forced (-f). Adding a -p suppresses the unneeded copy on repeated builds of a target so it doesn't needlessly rewrite the ELF file. What I could not find out is where to edit this to add the -p other than modifying the Makefile manually. Hope this helps, Bill