replace build script with makefile