[build2] Wildcards and pattern exclusion

Boris Kolpackov boris at codesynthesis.com
Fri Apr 7 09:37:48 UTC 2017


Hi Max,

Moldmann Max (DC-MA/ENG52-NA) <Max.Moldmann at boschrexroth-us.com> writes:

> exe{main}: {h c}{** -Templates}
> 
> But build2 doesn't exclude the Templates dir

Because 'Templates' is not a directory ('Templates/' is). But you also
cannot exclude directories from file matches (see the docs for details).
The way to accomplish what you want would be:

exe{main}: {h c}{** -Templates/*}

Boris



More information about the users mailing list