Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Dec 2003 03:35:13 -0500
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        Sergey Matveychuk <sem@ciam.ru>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Help with 'exists' in Makefile
Message-ID:  <20031208083513.GX27144@toxic.magnesium.net>
In-Reply-To: <3FD43680.6090001@ciam.ru>
References:  <3FD43680.6090001@ciam.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
>> (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@vectors.cx	>>  http://www.vectors.cx
magnesium.net	<<  adamw@magnesium.net	<<  http://www.magnesium.net/~adamw
FreeBSD		>>  adamw@FreeBSD.org	>>  http://people.freebsd.org/~adamw
#vim:set ts=8: 8-char tabs prevent tooth decay.



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