Modularized setup-makefiles.sh