code improve for makefile.