How to generate depends.make file for custom language

Hello,
I am trying to make a custom language option for building cmake, but my compilation does not correctly update when I do a touch on a header file.
In older versions of cmake I remember using (with c++ compilers) something along the lines of

CMAKE_DEPFILE_FLAGS_<LANGUAGE> "-MD -MT <OBJECT> -MF <DEPFILE>"

But now it looks like dependencies are aggregated into a depend.make at configuration? Can someone point me in the right direction?

CMAKE_DEPFILE_FLAGS_... is only used by Ninja generators. Makefiles generators rely on CMake internal parser which generates depend.make file.
Unfortunately, this internal parser cannot be customized so custom languages cannot benefit from this parser.

In case anyone is interested, I switched over to the ninja generator and the dependency generation worked (I was compiling to llvm-ir and doing extra compilation passes followed by full LTO).

Thanks for the help Marc!