fix makefile when dest is a  file