makefile function

Generate Makefile from a given list of rules (job).