Help with 'exists' in Makefile
Adam Weinberger
adamw at FreeBSD.org
Mon Dec 8 00:35:15 PST 2003
>> (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>
# Adam
--
Adam Weinberger
vectors.cx >> adam at vectors.cx >> http://www.vectors.cx
magnesium.net << adamw at magnesium.net << http://www.magnesium.net/~adamw
FreeBSD >> adamw at FreeBSD.org >> http://people.freebsd.org/~adamw
#vim:set ts=8: 8-char tabs prevent tooth decay.
More information about the freebsd-ports
mailing list