Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Dec 2003 11:29:52 +0300
From:      Sergey Matveychuk <sem@ciam.ru>
To:        freebsd-ports@freebsd.org
Subject:   Help with 'exists' in Makefile
Message-ID:  <3FD43680.6090001@ciam.ru>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------030801070203020300010308
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hello!

Take a look at attached Makefile.
Type 'make test'.
Why '.if exists()' always fails?
I've tried it both -STABLE and -CURRENT.
It's a someting magic for me.

-- 
Sem.

--------------030801070203020300010308
Content-Type: text/plain;
 name="Makefile"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Makefile"

PORTNAME=	some-port
PORTVERSION=	0.1
CATEGORIES=	devel
MASTER_SITES=
DISTFILES=

MAINTAINER=	sem@ciam.ru
COMMENT=	some port

TESTS_COOKIE=	${WRKDIR}/.tests_built

do-fetch:
	@${DO_NADA}
	
do-build:
	@${TOUCH} ${TOUCH_FLAGS} ${TESTS_COOKIE}
	@${ECHO_MSG} ""
	@${ECHO_MSG} "===> Build done."
	@${ECHO_MSG} "     You can run tests now with \`make test'"
	@${ECHO_MSG} ""

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>

--------------030801070203020300010308--



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