refine the makefile.