From owner-freebsd-current@FreeBSD.ORG Thu Jul 26 20:15:55 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8B775106564A for ; Thu, 26 Jul 2012 20:15:55 +0000 (UTC) (envelope-from mezz.freebsd@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 50EF48FC08 for ; Thu, 26 Jul 2012 20:15:55 +0000 (UTC) Received: by obbun3 with SMTP id un3so4085585obb.13 for ; Thu, 26 Jul 2012 13:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=uqKOPUJ6fyJS3+53VjWx/hz+yS0F5TfGfUv8YKPoI3c=; b=eca37yAw3oiHawa4M4F0eB194nk767HAkNh0a79sFr/W/+EQk2ayMO9Q9k1oQRerbQ tkdqjESpI4ZgiKGsSd2hbhlUR7oc7ukzVnMJ60Wtc06VjmH2qqQfgfdkneMx2FE/2xZs HHJEZuA/TkWaQY02igG6/K/wAgaje6HQsurj9cmruG/vkcJ/gRMS38GjI8+3XYOQKZ5R d+h7Ajk3JYngg/a9JTKVX9oDYmNH7ufYY4kLIMquE8kFP/ddpkMQYhSKAnOi7kq23T59 o/WsDvQpfOjroZvbD9tFbnGtE2cP9n797/SRKLtw1bC1AI0w/DaKBxIpROkcfq/BshYZ u7vw== MIME-Version: 1.0 Received: by 10.182.136.66 with SMTP id py2mr183783obb.9.1343333754696; Thu, 26 Jul 2012 13:15:54 -0700 (PDT) Received: by 10.76.125.233 with HTTP; Thu, 26 Jul 2012 13:15:54 -0700 (PDT) In-Reply-To: References: Date: Thu, 26 Jul 2012 15:15:54 -0500 Message-ID: From: Jeremy Messenger To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: Is the :u behaves normal or not (a bug) in the make? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2012 20:15:55 -0000 On Thu, Jul 26, 2012 at 3:11 PM, Jeremy Messenger wrote: > Hello all, > > While I was working on add the :build/:run feature in the > bsd.gnome.mk. I got a bug where it will running some dependencies got > duplicate. Thanks to the make(1) that shows me the :u feature to get > rid of the duplicates. But it doesn't exactly help unless I use the :O > to get the words in order to make the :u works. I am not sure if it's > just limited on how it works (normal) or it's a bug. Here's an example > test: > > ----------------------------- > USE_TEST= foo bar bar foobar foo > USE_TEST1= foo bar bar foobar foo > > test: > @${ECHO_CMD} "USE_TEST: " ${USE_TEST:u} > @${ECHO_CMD} "USE_TEST1: " ${USE_TEST1:O:u} > ----------------------------- > > Here's result: > ----------------------------- > # make test > USE_TEST: foo bar foobar foo > USE_TEST1: bar foo foobar > ----------------------------- BTW: # uname -a FreeBSD outlaws.localhost 9.0-STABLE FreeBSD 9.0-STABLE #0: Sat Mar 31 12:43:40 CDT 2012 mezz@outlaws.localhost:/usr/obj/usr/src/sys/GENERIC amd64 > Thanks, > Mezz -- mezz.freebsd@gmail.com - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org