sync build scripts with Makefile