Replace build script with makefile