From owner-freebsd-ports@FreeBSD.ORG Mon Feb 2 19:26:14 2004 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 3FDFA16A4CE for ; Mon, 2 Feb 2004 19:26:14 -0800 (PST) Received: from hueymiccailhuitl.mtu.ru (hueytecuilhuitl.mtu.ru [195.34.32.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F9DD43D3F for ; Mon, 2 Feb 2004 19:26:13 -0800 (PST) (envelope-from sem@ciam.ru) Received: from ciam.ru (ppp138-4.dialup.mtu-net.ru [62.118.138.4]) by hueymiccailhuitl.mtu.ru (Postfix) with ESMTP id EA001F95AA for ; Tue, 3 Feb 2004 06:26:08 +0300 (MSK) (envelope-from sem@ciam.ru) Message-ID: <401F14D6.4020201@ciam.ru> Date: Tue, 03 Feb 2004 06:26:14 +0300 From: Sergey Matveychuk User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: ports@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Makefile: .if inside .for 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, 03 Feb 2004 03:26:14 -0000 man make says: For loops are expanded before tests, so a fragment such as: .for TMACHINE in ${SHARED_ARCHS} .if ${TMACHINE} = ${MACHINE} ... .endif .endfor won't work, and should be rewritten the other way around. But how can I rewrite it if I need to aggregate file names in PLIST_FILES with a some condition in a loop? May be I need to sleep, but I can't to find any other decision. -- Sem.