Always create the target directory, if it does not exist. Also use the Makefile template from the source tree.