add some functions in Makefile