From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: buildobj.lst and Windows builds - a tiny bit of help needed? Date: Sun, 23 Aug 2009 21:02:18 +0300 Message-ID: <83bpm6flxx.fsf@gnu.org> References: <4CC1CF5E-088F-459E-BCF7-61DEFA747DE1@raeburn.org> <4A90FE29.9080205@gnu.org> <72B7514B-A488-4FA1-A0C6-8114E60E9209@raeburn.org> <4A917183.9090404@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1251050580 11468 80.91.229.12 (23 Aug 2009 18:03:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Aug 2009 18:03:00 +0000 (UTC) Cc: raeburn@raeburn.org, emacs-devel@gnu.org To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 23 20:02:53 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MfHP2-0001J5-Pm for ged-emacs-devel@m.gmane.org; Sun, 23 Aug 2009 20:02:53 +0200 Original-Received: from localhost ([127.0.0.1]:37940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfHP1-0008Ua-PL for ged-emacs-devel@m.gmane.org; Sun, 23 Aug 2009 14:02:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MfHOx-0008SZ-GE for emacs-devel@gnu.org; Sun, 23 Aug 2009 14:02:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfHOs-0008KV-0I for emacs-devel@gnu.org; Sun, 23 Aug 2009 14:02:47 -0400 Original-Received: from [199.232.76.173] (port=44028 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfHOr-0008KS-UC for emacs-devel@gnu.org; Sun, 23 Aug 2009 14:02:41 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:32834) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MfHOp-0005fT-0Q; Sun, 23 Aug 2009 14:02:39 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0KOU00F00CMKVP00@a-mtaout22.012.net.il>; Sun, 23 Aug 2009 21:02:19 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.180.85]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KOU00EGUCRUKY70@a-mtaout22.012.net.il>; Sun, 23 Aug 2009 21:02:19 +0300 (IDT) In-reply-to: <4A917183.9090404@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:114534 Archived-At: > Date: Mon, 24 Aug 2009 00:42:43 +0800 > From: Jason Rumney > Cc: Emacs Developers > > Ken Raeburn wrote: > > > > echo $(ARGQUOTE)#define BUILDOBJ $(DQUOTE)\$(ARGQUOTE) > > > $(SRC)/buildobj.h > > echo $(OBJ0) $(ARGQUOTE)\$(ARGQUOTE) >> $(SRC)/buildobj.h > > Yes, that looks about right. > > > Is one backslash what I need here, if I want to get one written to the > > file at the end of the line? Or does some backslash quote processing > > happen, and I need two? > > If you don't need to double the backslashes in the main Makefile.in, > then I don't think it will be necessary here. If you do need to double > them in Makefile.in, then it is probably dependent on the shell in use, > and we'll have to add some more definitions to correctly cope with the > differences. I think it will be hard to DTRT without shell-specific targets: a Unixy shell needs to see the backslash escaped, the Windows shell needs to see it alone. $(ARGQUOTE) will not help here, since with stock Windows shell, $(ARGQUOTE)\$(ARGQUOTE) evaluates to "\", and the backslash will escape the quote, which is not what we want.