From murdoch at stats.uwo.ca  Sat Jun 10 00:18:49 2006
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Fri, 09 Jun 2006 18:18:49 -0400
Subject: [Rd] Environment variable MAKE not defined on Windows
In-Reply-To: <6phodx2drl9.fsf@gopher1.fhcrc.org>
References: <6phodx2drl9.fsf@gopher1.fhcrc.org>
Message-ID: <4489F3C9.1090904@stats.uwo.ca>

On 6/9/2006 4:03 PM, Martin Morgan wrote:
> On Windows,
> 
>> Sys.getenv("MAKE")
>   MAKE 
> "" 
> 
> when (at a DOS prompt)
> 
> X:>set MAKE
> Environment variable MAKE not defined
> 
> On linux,
> 
>> Sys.getenv("MAKE")
>   MAKE 
> "make" 
> 
> even when (in a shell)
> 
> % echo $MAKE
> 
> returns nothing.
> 
> 
> This has consequences, e.g., in buildVignette where
> 
> system(Sys.getenv("MAKE"))
> 
> dutifully does nothing on Windows, but evaluates the vignette Makefile
> on linux.
> 
>> sessionInfo()
> R version 2.4.0 Under development (unstable) (2006-06-08 r38315)
> i386-pc-mingw32
> 
>> sessionInfo()
> R version 2.4.0 Under development (unstable) (2006-05-25 r38197) 
> x86_64-unknown-linux-gnu 

Most Windows systems don't have a working "make" command, and I don't 
know of a reliable test for one.  (I believe the one that ships with MS 
compilers is not compatible with R's makefiles.)  If you do have one, 
you can define MAKE=make on the Rgui or Rterm command line.

Duncan Murdoch



[Rd] Environment variable MAKE not defined on Windows
Duncan Murdoch