Help with 'exists' in Makefile

Sergey Matveychuk sem at ciam.ru
Mon Dec 8 23:59:54 PST 2003


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.


More information about the freebsd-ports mailing list