From owner-freebsd-ports@FreeBSD.ORG Fri Mar 23 14:33:39 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20BDC1065670 for ; Fri, 23 Mar 2012 14:33:39 +0000 (UTC) (envelope-from magik@roorback.net) Received: from roorback.net (194-28-50-218.arpa.teredo.pl [194.28.50.218]) by mx1.freebsd.org (Postfix) with ESMTP id D19BD8FC14 for ; Fri, 23 Mar 2012 14:33:38 +0000 (UTC) Received: from [10.1.1.66] (unknown [157.25.200.146]) by roorback.net (Postfix) with ESMTPSA id 4FAF71095824 for ; Fri, 23 Mar 2012 15:33:39 +0100 (CET) Message-ID: <4F6C89AC.4050809@roorback.net> Date: Fri, 23 Mar 2012 15:33:16 +0100 From: Grzegorz Blach User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20120130 Thunderbird/10.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <4F6C8893.6040005@FreeBSD.org> In-Reply-To: <4F6C8893.6040005@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on fbsdmon.org Subject: Re: why :: in ports makefile ? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Mar 2012 14:33:39 -0000 On 03/23/2012 03:28 PM, Michael Scheidell wrote: > I have never seen this before, and I wanted to know what it does. > > diff -ruN /tmp/p5-Mail-SpamAssassin.org/Makefile > /tmp/p5-Mail-SpamAssassin/Makefile > --- /tmp/p5-Mail-SpamAssassin.org/Makefile 2012-02-08 00:17:28.000000000 > +0900 > +++ /tmp/p5-Mail-SpamAssassin/Makefile 2012-03-06 08:55:28.445163638 +0900 > @@ -219,7 +219,7 @@ > .endif > @${INSTALL_DATA} ${WRKSRC}/spamc/libspamc.h ${PREFIX}/include > > -post-install: > +post-install:: > .if defined (WITH_SPAMC) > @${STRIP_CMD} ${PREFIX}/bin/spamc > .endif > > (this patch was sent to me by the maintainer of ja-p5-Mail-SpamAssassin. > I suggested that he change his port to a slave port so that it would be > easier to follow, and he has done a good job. > > I just wanted to know what the differences are in the port Makefile > between a ':' and a '::' > > Does this have to do with slave port(ish) things? does this force it to > execute? what is it? > > Pardon my ignorance, I have just never seen this before in any port I > have maintained, or worked on. > > (reference this PR for context) > > > > > > From `man make` : A target is considered out-of-date if its modification time is less than those of any of its sources. Sources for a target accumulate over dependency lines when this operator is used. The target is removed if make is interrupted. :: If no sources are specified, the target is always re-created. Otherwise, a target is considered out-of-date if any of its sources has been modified more recently than the target. Sources for a target do not accumulate over dependency lines when this operator is used. The target will not be removed if make is interrupted.