From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Peter 'Luna' Runestig" Newsgroups: gmane.emacs.devel Subject: Re: "nmake info" Windows patch Date: Sat, 22 Feb 2003 10:53:19 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3E57488F.8050407@runestig.com> References: <3E56A017.9050705@runestig.com> <3405-Sat22Feb2003112154+0200-eliz@is.elta.co.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1045907716 3188 80.91.224.249 (22 Feb 2003 09:55:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 22 Feb 2003 09:55:16 +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 18mWNG-0000pH-00 for ; Sat, 22 Feb 2003 10:55:14 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18mWbg-0000AH-00 for ; Sat, 22 Feb 2003 11:10:08 +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 18mWMS-0005MF-05 for emacs-devel@quimby.gnus.org; Sat, 22 Feb 2003 04:54:24 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18mWM5-0005Fo-00 for emacs-devel@gnu.org; Sat, 22 Feb 2003 04:54:01 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18mWLY-0003Yg-00 for emacs-devel@gnu.org; Sat, 22 Feb 2003 04:53:59 -0500 Original-Received: from arthur.runestig.com ([62.108.199.166]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18mWLX-0003He-00 for emacs-devel@gnu.org; Sat, 22 Feb 2003 04:53:28 -0500 Original-Received: from runestig.com (h20n2fls34o823.telia.com [217.208.10.20]) by arthur.runestig.com (8.12.1/8.12.1) with ESMTP id h1M9rMHR024033; Sat, 22 Feb 2003 10:53:22 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030207 X-Accept-Language: en-us, en Original-To: Eli Zaretskii In-Reply-To: <3405-Sat22Feb2003112154+0200-eliz@is.elta.co.il> 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:11839 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11839 On 2003-02-22 10:21, Eli Zaretskii wrote: >> [...] >> +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). The `info' target works in native Windows (well, on XP at least). I cheated a bit when making the `makefile.w32-in' files, by copying the `Makefile.in' files, and tweaking them until the `info' target worked. So, yes, there are stuff left there that cmd.exe can't handle, but it's never been called upon in my testings. > If this only works with Cygwin tools, we should at least tell that > somewhere. That's not the intention, but I've used `cp', `rm' and `makeinfo' (and dependencies to that) from Cygwin when testing this. > 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). Sure, but you need `rm' to build emacs anyway. >> +++ 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. This works fine with cmd.exe. Cheers, - Peter -- Peter 'Luna' Runestig (fd. Altberg), Sweden PGP Key ID: 0xD07BBE13 Fingerprint: 7B5C 1F48 2997 C061 DE4B 42EA CB99 A35C D07B BE13 AOL Instant Messenger Screen name: PRunestig