Makefile experts, unite!

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 11 12:26:07 PDT 2017


Andrei Alexandrescu wrote:

> Phobos' posix.mak offers the ability to only run unittests for one module:
>
> make std/range/primitives.test BUILD=debug -j8
>
> ... or package:
>
> make std/range.test BUILD=debug -j8
>
> It runs module tests in parallel and everything. This is definitely 
> awesome. But say I misspell things by using a dot instead of the slash:
>
> make std.range.test BUILD=debug -j8
>
> Instead of an error, I get a no-op result that looks like success. How 
> can that situation be converted to an error?

maybe by creating phony targets with such names?


More information about the Digitalmars-d mailing list