From owner-freebsd-bugs Thu Apr 18 4:30:12 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3F37C37B41C for ; Thu, 18 Apr 2002 04:30:06 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3IBU6569672; Thu, 18 Apr 2002 04:30:06 -0700 (PDT) (envelope-from gnats) Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at [128.130.111.12]) by hub.freebsd.org (Postfix) with ESMTP id 5BFB437B419 for ; Thu, 18 Apr 2002 04:23:28 -0700 (PDT) Received: from naos.dbai.tuwien.ac.at (naos [128.130.111.28]) by vexpert.dbai.tuwien.ac.at (8.11.6/8.11.6) with ESMTP id g3IBNPW29365; Thu, 18 Apr 2002 13:23:25 +0200 (MET DST) Received: (from pfeifer@localhost) by naos.dbai.tuwien.ac.at (8.11.6/8.11.6) id g3IBNIV28960; Thu, 18 Apr 2002 13:23:18 +0200 (CEST) (envelope-from pfeifer) Message-Id: <200204181123.g3IBNIV28960@naos.dbai.tuwien.ac.at> Date: Thu, 18 Apr 2002 13:23:18 +0200 (CEST) From: Gerald Pfeifer To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/37224: make: $< only set for implicit rules Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 37224 >Category: bin >Synopsis: make: $< only set for implicit rules >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 18 04:30:05 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Gerald Pfeifer >Release: FreeBSD 4.5-RELEASE i386 >Organization: >Environment: System: FreeBSD naos.dbai.tuwien.ac.at 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Fri Feb 15 09:48:40 CET 2002 root@naos.dbai.tuwien.ac.at:/usr/src/sys/compile/DBAI i386 The same happens on -CURRENT as well. >Description: The following Makefile demonstrates a make(1) bug handling $< in explicit rules (assume that bar.c resides in the current directory): .c.o: echo $< foo: bar.c echo $< Specifically, 'make bar.o' prints bar.c, as expected, while 'make foo' prints the empty string (as $< has not been set). GNU make prints bar.c in both cases, and also my reading of IEEE Std 1003.1-2001 indicates that make(1) is incorrect here. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message