From owner-freebsd-ports@FreeBSD.ORG Mon Dec 8 00:29:00 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23CC616A4CE for ; Mon, 8 Dec 2003 00:29:00 -0800 (PST) Received: from mail.ciam.ru (main.ciam.ru [213.147.57.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F7A143FBD for ; Mon, 8 Dec 2003 00:28:59 -0800 (PST) (envelope-from sem@ciam.ru) Received: from sem.ciam.ru ([192.168.45.10] helo=ciam.ru) by mail.ciam.ru with esmtp (Exim 4.x) id 1ATGlF-0001ft-P4 for freebsd-ports@freebsd.org; Mon, 08 Dec 2003 11:28:57 +0300 Message-ID: <3FD43680.6090001@ciam.ru> Date: Mon, 08 Dec 2003 11:29:52 +0300 From: Sergey Matveychuk User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6a) Gecko/20031028 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-ports@freebsd.org Content-Type: multipart/mixed; boundary="------------030801070203020300010308" Subject: Help with 'exists' in Makefile X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2003 08:29:00 -0000 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 --------------030801070203020300010308--