[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] note GNU-make-ism in FAQ

From: Peter Samuelson <peter_at_p12n.org>
Date: 2006-02-27 23:21:14 CET

[Philip Martin]
> > -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 mailing list.