[Top][All Lists]

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

substitution vs expansion in

From: John Calcote
Subject: substitution vs expansion in
Date: Tue, 4 Mar 2008 14:38:50 -0700

hi list,

Newbie question here: Is it better to do this in a

           $(mkdir_p) $(DESTDIR)@syslogdir@

or this:

          $(mkdir_p) $(DESTDIR)$(syslogdir)

assuming, of course, that I called AC_SUBST(syslogdir) in

The first will expand to $(prefix)/..., so you'd have the option of
changing the resulting directory by passing prefix= on the make
command line. The second will allow you to change the resulting
directory with either prefix= or syslogdir= on the make command line.
I guess you'd get a bit more flexibility by using the second option
because you could change the syslogdir without changing the prefix.
But, is there a conventional, or more correct approach?

If you have an opinion on it, then what's your rationale?

Thanks in advance,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]