make build depend on makefile
remove unnecessary lambda capture