refactored makefile generator
Refactored makefile-generator unit test

Uses should.match to only assert the things we want to test, the rest
of the result can differ. This decouples tests from behaviour it
doesn’t want to test.