From owner-freebsd-ports@FreeBSD.ORG Mon Dec 8 23:59:54 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 8051616A4CF for ; Mon, 8 Dec 2003 23:59:54 -0800 (PST) Received: from mail.ciam.ru (main.ciam.ru [213.147.57.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7CDC43D2F for ; Mon, 8 Dec 2003 23:59:52 -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 1ATcma-000NYJ-25; Tue, 09 Dec 2003 10:59:48 +0300 Message-ID: <3FD5812C.40702@ciam.ru> Date: Tue, 09 Dec 2003 11:00:44 +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: Nicola Vitale References: <3FD43680.6090001@ciam.ru> <20031208182427.GA5296@Psyllobora> In-Reply-To: <20031208182427.GA5296@Psyllobora> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-ports@freebsd.org Subject: Re: 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: Tue, 09 Dec 2003 07:59:54 -0000 Nicola Vitale wrote: > Because the WRKDIR variable is defined in post-makefile > section, so when your target (test) is built it is null. Oops! Really stupid mistake. :( Thanks for help! > It also works, for example, if you put your target after > the directive > > .include > > but this usage is forbidden. :) OK. I think I could use shell 'if [ -f ${TESTS_COOKIE} ]' instead. -- Sem.