Question: There is a number of unit test frameworks for most of the languages, but I haven't come across a unit test for GNU make. It has [conditionals](http://www.gnu.org/software/make/manual/make.html#toc_Conditionals), loops (the $(foreach ...) statement), and allows to write pretty sophisticated code. The examples might be things like BSD ports, GARNOME, and OpenCSW GAR. 

There's also [a debugger](http://gmd.sourceforge.net/) for GNU make. However, I've never come across a unit test framework for it. Is there anything like this in existence?

Answer: 
There is one in my bookmarks; I haven't used it, so cannot tell how well it works.

<https://sourceforge.net/projects/munit/files/>
The makefiles for Perl, PHP, Python, GHC and GCC (amongst open source projects I could think of off the top of my head and had lying around on my machine) all have 'test' targets, which I think would make interesting reading.