GNU Makefiles - best practices

This is a summary of best practices when using Makefiles . This post is primarily intended for my students building tools in our lab. Much of this post is based on the Make bestpractices that I learned during my stint at Sun Microsystems, updated to reflect GNU Make since it is the most common make flavour at this point by a significant margin. Contents (GNU) Makefiles best practices Automatic…