Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Dec 2006 23:18:01 -0700
From:      "Coleman Kane" <zombyfork@gmail.com>
To:        freebsd@alaskaparadise.com
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: if exists statement
Message-ID:  <346a80220612182218m1d2586cbhe0679fdbbb3cec08@mail.gmail.com>
In-Reply-To: <200612182030.42795.freebsd@alaskaparadise.com>
References:  <200612182030.42795.freebsd@alaskaparadise.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/18/06, Beech Rintoul <freebsd@alaskaparadise.com> wrote:
>
> I'm trying to write an if exists for a port makefile.
>
> I tried:
>
> .if exists= ${PREFIX}/etc/rc.d
> exit
> else
> ${MKDIR} ${PREFIX}/etc/rc.d
> .endif
>
> but it doesn't work.
>
> Can someone give me the right syntax?
>
> TIA
>
> Beech
> --


I think you want something like:
.if exists($(PREFIX)/etc/rc.d)

...


--
Coleman Kane



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