Makefile generator in Python