Makefiles and dub

Mathias LANG geod24 at gmail.com
Tue Nov 8 14:19:39 UTC 2022


On Friday, 4 November 2022 at 23:19:17 UTC, Anonymouse wrote:
> [#20699](https://issues.dlang.org/show_bug.cgi?id=20699) must 
> be non-trivial to fix, so I'm exploring makefiles. If possible 
> I'd like to keep dub for dependency management though, just not 
> for actual compilation.

That bug is fixed for the last 3 releases (not including the 
current one in progress), that is, since v1.26.0.

> Is it at all possible (or even desireable) to construct a 
> makefile that builds dependencies from outside of the source 
> tree (namely 
> `$HOME/.dub/packages/package_with_unknown_version-1.2.[0-9]+/`)?
>
> Does anyone have an example `Makefile` I could dissect?
>
> Thanks.

In the past, I used https://github.com/sociomantic-tsunami/makd 
for building D code.
But it doesn't do dependency management like dub, as it expected 
libraries to be in `submodules/`.


More information about the Digitalmars-d-learn mailing list