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. (GNU) Makefiles best practices Automatic variables are your friends. $@ is the name of the target. Make it a habit to touch $@ at the end of the make r...