Re: [PATCH] note GNU-make-ism in FAQ
> > -SVNDEF = -D'SVN_REV="$(shell svnversion -n .)"'
> > -CFLAGS = $(SVNDEF) ... continue with your other flags ...
> > +SVNDEF := -D'SVN_REV="$(shell svnversion -n .)"'
> > +CFLAGS := $(SVNDEF) ... continue with your other flags ...
> I assume that := only needs to be used on the SVNDEF line and not on
> both lines.
Correct - but there's no reason *not* to use it on both lines. It's
what you really should use by default. = assignment should only be
used when you *know* you want delayed expansion semantics. Usually you
don't. (Or don't care.)
Received on Mon Feb 27 23:32:47 2006
This is an archived mail posted to the Subversion Dev