[OT] D in makefiles
Shachar Shemesh via Digitalmars-d
digitalmars-d at puremagic.com
Sun Dec 18 11:47:55 PST 2016
On 17/12/16 10:06, John Colvin wrote:
> On Saturday, 17 December 2016 at 02:00:34 UTC, Superstar64 wrote:
>> Makefiles allow custom shells. So with a small wrapper script we can
>> use D in makefile. Here's my proof of concept:
>> https://gist.github.com/Superstar64/8b896312ebe1a6e6240b1cba8aed2488.
>
> If you define
> SHELL = rdmd
> you might not need any wrapper script.
Since newlines in make mean new execution, you will find it pretty hard
to write a recipe that will be both usable and readable. This is, of
course, assuming you overcome the fact that rdmd does not accept the
program as a "-c" argument.
Shachar
More information about the Digitalmars-d
mailing list