Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 22 Jun 2002 09:51:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 22 Jun 2002 09:51:24 -0400 Received: from hugin.diku.dk ([130.225.96.144]:41732 "HELO hugin.diku.dk") by vger.kernel.org with SMTP id ; Sat, 22 Jun 2002 09:51:23 -0400 To: "Adam J. Richter" Cc: bug-make@gnu.org, linux-hams@vger.kernel.org, linux-kernel@vger.kernel.org, sailer@ife.ee.ethz.ch Subject: Re: make-3.79.1 bug breaks linux-2.5.24/drivers/net/hamradio/soundmodem References: <200206220657.XAA21563@adam.yggdrasil.com> X-My-Web-page: http://www.diku.dk/~makholm/ Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit From: Henning Makholm Date: 22 Jun 2002 15:51:24 +0200 In-Reply-To: "Adam J. Richter"'s message of "Fri, 21 Jun 2002 23:57:38 -0700" Message-ID: X-Mailer: Gnus v5.7/Emacs 20.7 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1472 Lines: 37 Scripsit "Adam J. Richter" [Warning: I am not the make maintainer; I just lurk on bug-make] > $(obj)/sm_tbl_%: $(obj)/gentbl > $< > obj was set to "." /usr/src/linux/Rules.make, which was included > earlier in the Makefile. > Until the make bug is fixed, I have worked around the problem > by replacing the rule with: > $(obj)/sm_tbl_%: $(obj)/gentbl > PATH=$(obj):$$PATH $< That looks like an excessively complicated workaround. Why not just $(obj)/sm_tbl_%: $(obj)/gentbl $(obj)/gentbl ? I'm not sure this is really a bug either. It is a Good Thing that make tries to normalize the names of targets and dependencies internally, lest the build may be incomplete or redundant if make does not realize that foo.bar and ./foo.bar is the same file. It is quite reasonable for $< to unfold to the *canonical* name of the file in question, I think. If one absolutely wants the command to use the exact form of the dependency that's used in the dependency list, it's easy to simply reproduce that form, replacing the % by $* -- Henning Makholm "You are in a little twisting maze of passages, all different" - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/