use autogenerated make dependencies

- write .deps files during compilation
- include .deps files in makefile
Merge pull request #2991 from MartinNowak/makedepends

use autogenerated make dependencies
fix Issue 11813 - Improve IFTI error diagnostic
fix Issue 11814 - Unnecessary error messages "does not match ..." on IFTI failure