From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16425 invoked by alias); 15 Nov 2001 17:16:55 -0000 Mailing-List: contact gdb-patches-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 16236 invoked from network); 15 Nov 2001 17:16:48 -0000 Received: from unknown (HELO duracef.shout.net) (204.253.184.12) by sourceware.cygnus.com with SMTP; 15 Nov 2001 17:16:48 -0000 Received: (from mec@localhost) by duracef.shout.net (8.8.7/8.8.7) id LAA21357; Thu, 15 Nov 2001 11:16:32 -0600 Date: Tue, 06 Nov 2001 10:30:00 -0000 From: Michael Elizabeth Chastain Message-Id: <200111151716.LAA21357@duracef.shout.net> To: bjh21@cam.ac.uk, gdb-patches@sources.redhat.com Subject: Re: sim/arm/Makefile.in fix for non-GNU make X-SW-Source: 2001-11/txt/msg00087.txt.bz2 Ben Harris writes: > sim/arm/Makefile.in currently uses $< in a non-implicit rule. This > doesn't work with non-GNU makes (at least NetBSD's one) since $< isn't set > for non-implicit rules. I got curious, so I checked the Single Unix Spec for make: http://www.opengroup.org/onlinepubs/007908799/xcu/make.html It says: $< In an inference rule, $< evaluates to the filename whose existence allowed the inference rule to be chosen for the target. In the .DEFAULT rule, the $< macro evaluates to the current target name. The $< macro is evaluated only for inference rules. For example, in the .c.a inference rule, $< represents the prerequisite .c file. So I think this is a good patch. My two cents, Michael C