Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Dec 2003 11:00:44 +0300
From:      Sergey Matveychuk <sem@ciam.ru>
To:        Nicola Vitale <nivit@email.it>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Help with 'exists' in Makefile
Message-ID:  <3FD5812C.40702@ciam.ru>
In-Reply-To: <20031208182427.GA5296@Psyllobora>
References:  <3FD43680.6090001@ciam.ru> <20031208182427.GA5296@Psyllobora>

next in thread | previous in thread | raw e-mail | index | archive | help
Nicola Vitale wrote:
> Because the WRKDIR variable is defined in post-makefile
> section, so when your target (test) is built it is null.

Oops! Really stupid mistake. :(
Thanks for help!

> It also works, for example, if you put your target after
> the directive
> 
> .include <bsd.port.post.mk>
> 
> but this usage is forbidden. :)

OK. I think I could use shell 'if [ -f ${TESTS_COOKIE} ]' instead.

-- 
Sem.



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