Help with 'exists' in Makefile

Sergey Matveychuk sem at ciam.ru
Mon Dec 8 08:41:21 PST 2003


Adam Weinberger wrote:
>>>(12.08.2003 @ 0329 PST): Sergey Matveychuk said, in 1.5K: <<
>>
>>TESTS_COOKIE=	${WRKDIR}/.tests_built
>>
>>test: build
>>.if exists(${TESTS_COOKIE})
>>	@${ECHO_MSG} "===> Running tests."; \
>>	${ECHO_MSG} "===> Tests done."
>>.else
>>	@${ECHO_MSG} "===> Tests was not build"; \
>>	${ECHO_MSG} ""
>>.endif
>>
>>.include <bsd.port.mk>
>>
>>>end of "Help with 'exists' in Makefile" from Sergey Matveychuk <<
> 
> 
> .include <bsd.port.pre.mk>
> 
> test: build
> .if exists(${TESTS_COOKIE})
> [etc]
> .endif
> 
> .include <bsd.port.post.mk>

Did you test it?
I found no difference. And I think it couldn't help.

---
Sem.



More information about the freebsd-ports mailing list