Better way to do conditional inclusion in make
Simon J. Gerraty
sjg at juniper.net
Fri Feb 6 06:37:10 UTC 2015
Warner Losh <imp at bsdimp.com> wrote:
> [*] Consider having something like
> .if ${MACHINE} != “i386” && ${MACHINE} != “amd64”
FWIW I started encouraging folk here to use the construct:
.if ${MACHINE:Ni386:Namd64} == "" # either
.if ${MACHINE:Ni386:Namd64} != "" # neither
as it more easily extends to a long list while remaining readable
More information about the freebsd-arch
mailing list