Hi Tomas - thanks for writing. As far as I know, there is nothing in Automake to support extension of dependency tracking by users to new languages. Unfortunately.
If it's possible for you to add dependency tracking for Guile into Automake, that would be welcome. You might like to peruse the second chapter in the automake-history manual: https://www.gnu.org/software/automake/history/automake-history.html#Dependency-Tracking-Evolution The first chapter is automake release history (skip it), but the second chapter is all about the different approaches to dependency tracking taken in Automake over time. The (make)Automatic Prerequisites node is specifically mentioned; that was the first approach of dependency tracking in automake, and it was abandoned, for reasons explained there. Extending to new languages is mentioned as a possible extension at the end of the chapter, but that's all there is, a bare mention. Finally, regarding DEPDIR, I doubt such a low-level variable/macro that's been around for umpteen years will ever be removed or renamed. As long as I'm effectively the maintainer, definitely not :). Perhaps others here have ideas on how you might proceed. I'm afraid I know little about automake's dependency tracking myself. Happy depending, Karl