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: "nmake info" Windows patch Date: Sat, 22 Feb 2003 11:21:55 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3405-Sat22Feb2003112154+0200-eliz@is.elta.co.il> References: <3E56A017.9050705@runestig.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1045906100 32174 80.91.224.249 (22 Feb 2003 09:28:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 22 Feb 2003 09:28:20 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18mVxD-0008Me-00 for ; Sat, 22 Feb 2003 10:28:19 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18mWBc-0008M4-00 for ; Sat, 22 Feb 2003 10:43:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18mVvd-0003zI-01 for emacs-devel@quimby.gnus.org; Sat, 22 Feb 2003 04:26:41 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18mVvK-0003xQ-00 for emacs-devel@gnu.org; Sat, 22 Feb 2003 04:26:22 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18mVuo-0002lf-00 for emacs-devel@gnu.org; Sat, 22 Feb 2003 04:26:21 -0500 Original-Received: from aragorn.inter.net.il ([192.114.186.23]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18mVun-0002ZQ-00 for emacs-devel@gnu.org; Sat, 22 Feb 2003 04:25:49 -0500 Original-Received: from zaretsky (adsl-ayalon-pc-129-174.inter.net.il [213.8.129.174]) by aragorn.inter.net.il (Mirapoint Messaging Server MOS 3.2.2-GA) with ESMTP id AGH74648; Sat, 22 Feb 2003 11:25:36 +0200 (IST) Original-To: peter@runestig.com X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (peter@runestig.com) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11838 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11838 > From: "Peter 'Luna' Runestig" > Date: 22 Feb 2003 00:14:04 +0100 > > "Peter 'Luna' Runestig" writes: > > Here is another thing I mentioned on bug-gnu-emacs some time ago. This > > patch that adds the `info' target to the Windows build. Tested with > > MSVC6/CygWin 1.3.20. > > ftp://ftp.runestig.com/pub/emacs/emacs-20030219-makeinfo.patch > > http://ftp.runestig.com/pub/emacs/emacs-20030219-makeinfo.patch > > By request, I'm actually posting the patch here. I take it it's the > preferred way in this forum then. You never now, sometimes people bitch > over a sig > four lines... > [...] > +SHELL = cmd > [...] > +MAKEINFO = makeinfo > +TEXI2DVI = texi2dvi > +DVIPS = dvips > +ENVADD = TEXINPUTS="$(srcdir):$(TEXINPUTS)" MAKEINFO="$(MAKEINFO) -I$(srcdir)" > [...] > +emacs-lisp-intro.dvi: $(INFO_SOURCES) > + $(ENVADD) $(TEXI2DVI) $(srcdir)/emacs-lisp-intro.texi Does this really work in native Windows environment (i.e. without Cygwin being installed)? I don't think CMD.EXE can run Unix shell scripts such as texi2dvi, and neither I think that a native Windows port of makeinfo will DTRT with the value of TEXINPUTS where directories are separated by colons (instead of semi-colons). If this only works with Cygwin tools, we should at least tell that somewhere. What would be _really_ nice if at least some targets would work with native Windows tools, not only with Cygwin. For example: > +mostlyclean: > + rm -f *.log *.cp *.fn *.ky *.pg *.vr *.tp > + > +clean: mostlyclean > + rm -f *.dvi There's no reason not to use CMD's built-in DEL command here (perhaps with a FOR loop). > +++ emacs-20030219/nt/makefile.w32-in 2003-02-21 21:23:01.000000000 +0100 > @@ -214,6 +214,15 @@ > $(MAKE) $(MFLAGS) -C ../lisp install > $(MAKE) $(MFLAGS) -C ../leim install > > +force-info: > +# Note that man/makefile knows how to > +# put the info files in $(srcdir), > +# so we can do ok running make in the build dir. > +info: force-info > + (cd ..\man && $(MAKE) $(MFLAGS) info) > + (cd ..\lispref && $(MAKE) $(MFLAGS) info) > + (cd ..\lispintro && $(MAKE) $(MFLAGS) info) This also won't work except with Cygwin Bash (or some other ported Unix shell) as your shell. Apologies if I missed some of this thread earlier, which stated that the intent is indeed to make this work with Cygwin only.