From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Dependencies in leim/Makefile.in Date: 29 Apr 2004 07:58:13 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <7494-Mon26Apr2004140554+0300-eliz@gnu.org> <200404290142.KAA27636@etlken.m17n.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1083214697 16508 80.91.224.253 (29 Apr 2004 04:58:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Apr 2004 04:58:17 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Apr 29 06:58:10 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BJ3cg-0008T1-00 for ; Thu, 29 Apr 2004 06:58:10 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BJ3cf-0004OE-00 for ; Thu, 29 Apr 2004 06:58:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BJ3bt-0003GY-QQ for emacs-devel@quimby.gnus.org; Thu, 29 Apr 2004 00:57:21 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BJ3bW-0003Fw-3f for emacs-devel@gnu.org; Thu, 29 Apr 2004 00:56:58 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BJ3au-0002wj-L6 for emacs-devel@gnu.org; Thu, 29 Apr 2004 00:56:51 -0400 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.30) id 1BJ3at-0002uR-TS; Thu, 29 Apr 2004 00:56:20 -0400 Original-To: Kenichi Handa In-reply-to: <200404290142.KAA27636@etlken.m17n.org> (message from Kenichi Handa on Thu, 29 Apr 2004 10:42:02 +0900 (JST)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22331 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22331 > Date: Thu, 29 Apr 2004 10:42:02 +0900 (JST) > From: Kenichi Handa > > TIT-GB=\ > quail/CCDOSPY.elc \ > quail/Punct.elc \ > quail/QJ.elc \ > quail/SW.elc \ > quail/TONEPY.elc > > Are there anyway to generate a variable that is equivalent > to this without writing it directly: I don't know, but we could ask Paul D. Smith, the GNU Make maintainer. > With Gnu make, it seems that we can do: > > TIT-GB-SOURCE := $(TIT-GB:quail/%.elc=CXTERM-DIC/%.tit) > > But, is such a variable substitution generally available? One idea is to get rid of the prefix directory in the source file names (CXTERM-DIC in this case), by putting those directories into VPATH, and then use an implicit dependency ".tit.elc:" and leave it to Make to find the *.tit files. (Yes, I know that VPATH is also unavailable in some flavors of Make, but I think it's more widespread than the feature you used above.) Even if no general solution is possible, we could use a GNU Make specific one; that way, at least users of GNU Make will have a better Makefile.