Makefile tips for dealing with variables: http://blog.melski.net/2010/11/30/makefile-hacks-print-the-value-of-any-variable/amp/