Makefile

From script to makefile