Fix Makefile cannot generate depend files

fix makefile cannot generate depend files,
and cannot delete depend files.