[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] Add INSTALL file



On Tue, Oct 21, Andrew Cooper wrote:

> On 21/10/14 11:01, Olaf Hering wrote:
> > On Mon, Oct 20, Andrew Cooper wrote:
> >
> >> On 17/10/14 15:50, Olaf Hering wrote:
> >>> +Variables recognized by make
> >>> +==========================
> >> What about some reference to .config in the top level?  It is what I use
> >> for providing most of these parameters in a XenServer build.
> > Like this?
> >
> > In addition to pass variables as make options it is also supported to
> > create a ".config" file in the toplevel directory. The file will be
> > sourced by make(1). It should contain the variables in the form
> > "variable := value". The usage of ":=" is prefered to override earlier
> > assignments to that variable by make(1).
> >
> >
> > Olaf
> 
> Thats ok, although I am not sure a description of ":=" is strictly
> needed - we are not teaching people to use make(1).  I think "will be
> sourced by make(1)" is sufficient to describe that it is a makefile snippet.

Looks like = vs. := works anyway:

var := val1
$(info var $(var))
var = val2
$(info var $(var))
var := val3
$(info var $(var))
var = val4
$(info var $(var))
all:

# make -f x.mk
var val1
var val2
var val3
var val4


I have removed the part about :=.

Olaf

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.