Switch build script to Makefile