On Monday, 21 May 2018 at 12:37:36 UTC, Jonathan M. Wilbur wrote:
$(DCOMPILER) -o- -op -d -Df$@ $<
That should work. It's roughly how the dlang.org documentation is built.
But that does not work, because some of the compiled modules import other modules, and the rule fails because DCOMPILER can't intelligently pull in the other source files.
Why would it need other source files? Are you missing include paths (-I switches)?
Could you post a complete example demonstrating the problem?