From simon.urbanek at r-project.org  Sat Aug 24 02:22:53 2013
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Fri, 23 Aug 2013 20:22:53 -0400
Subject: [Rd] Makevars and Makeconf sequencing
In-Reply-To: <1377302015.1062.38.camel@localhost>
References: <1377302015.1062.38.camel@localhost>
Message-ID: <3095AF57-EC53-4F58-BEF6-E2EAB87741F6@r-project.org>


On Aug 23, 2013, at 7:53 PM, Ross Boylan <ross at biostat.ucsf.edu> wrote:

> http://cran.r-project.org/doc/manuals/R-exts.html#Configure-and-cleanup
> near the start of 1.2.1 Using Makevars says
> 
>> There are some macros which are set whilst configuring the building of
>> R itself and are stored in R_HOME/etcR_ARCH/Makeconf. That makefile is
>> included as a Makefile after Makevars[.win], and the macros it defines
>> can be used in macro assignments and make command lines in the latter.
>> 
> I'm confused.  If Makeconf is included after Makevars, then how can
> Makevars use macros defined in Makeconf?
> 

Because regular (recursively expanded) variables in makefiles are evaluated lazily (i.e., when substituted).


> Or is the meaning only that a variable definition in Makeconf can be
> overridden in Makevars?
> 
> Ross Boylan
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 
> 



[Rd] Makevars and Makeconf sequencing
Simon Urbanek