Improve the behaviour of the build system wrt depend files.