make the build and make scripts generic