Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Feb 2015 22:36:58 -0800
From:      "Simon J. Gerraty" <sjg@juniper.net>
To:        Warner Losh <imp@bsdimp.com>
Cc:        "freebsd-arch@freebsd.org" <arch@freebsd.org>
Subject:   Re: Better way to do conditional inclusion in make
Message-ID:  <28404.1423204618@chaos>
In-Reply-To: <6B52B39B-EC45-4723-99AE-71EFC917B9A0@bsdimp.com>
References:  <39C20BA1-E6B1-4DAE-95BB-8011A0A64D54@bsdimp.com> <54D40DC4.9070907@freebsd.org> <6819.1423185743@chaos> <6B52B39B-EC45-4723-99AE-71EFC917B9A0@bsdimp.com>

index | next in thread | previous in thread | raw e-mail

Warner Losh <imp@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


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?28404.1423204618>