From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 23 18:47:17 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81685106564A for ; Mon, 23 Apr 2012 18:47:17 +0000 (UTC) (envelope-from jean-sebastien.pedron@dumbbell.fr) Received: from mail.made4.biz (unknown [IPv6:2001:41d0:1:7018::1:3]) by mx1.freebsd.org (Postfix) with ESMTP id 0FF778FC1A for ; Mon, 23 Apr 2012 18:47:17 +0000 (UTC) Received: from [2a01:e35:8b50:830:290:f5ff:fe9d:b78c] (helo=magellan.dumbbell.fr) by mail.made4.biz with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1SMOI7-000NLA-HG for freebsd-hackers@freebsd.org; Mon, 23 Apr 2012 20:47:16 +0200 Message-ID: <4F95A3B3.9000209@dumbbell.fr> Date: Mon, 23 Apr 2012 20:47:15 +0200 From: =?windows-1252?Q?Jean-S=E9bastien_P=E9dron?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:11.0) Gecko/20120419 Thunderbird/11.0.1 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <4F937874.7050506@rawbw.com> <636B7510-BBE3-4147-B6F4-04F47438858A@gmail.com> In-Reply-To: <636B7510-BBE3-4147-B6F4-04F47438858A@gmail.com> X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: Why make(1) doesn't support the internal macro $< ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2012 18:47:17 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 22.04.2012 05:27, Garrett Cooper wrote: > On Apr 21, 2012, at 8:18 PM, Yuri wrote: > >> When I run 'make' on the following makefile, $@ gets printed but >> $< doesn't. > > You want `$>`... .IMPSRC is something else… If the OP is used to GNU make, there's a difference: o $> in our make evaluates to all prerequisites o $< in GNU make evaluates to the first prerequisite only - -- Jean-Sébastien Pédron -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+Vo7MACgkQa+xGJsFYOlNmVQCeNjHKRKq9bBQr1e3MEuPe578k 9NMAnipvdpN26H9AgpOeClusa1bJ3tOB =13wY -----END PGP SIGNATURE-----