|
From: | Bob Friesenhahn |
Subject: | Re: substitution vs expansion in Makefile.am |
Date: | Tue, 4 Mar 2008 16:43:27 -0600 (CST) |
On Tue, 4 Mar 2008, John Calcote wrote:
Thanks Bob and Ralf. Here's one that's just a little more complex (the last one, I promise). I have this in my Makefile.am: registrarTest_SOURCES = registrar.c\ @top_srcdir@/common/mySleep.c registrarTest_CPPFLAGS = -DREGISTRAR_TEST\ -I$(top_srcdir)/common This question is somewhat related to the last one I asked. Where should I use @top_srcdir@, and where should I use $(top_srcdir)?
You should always use the Makefile form in Makefiles. You should always use relative paths in the source tree (from the Makefile location) to refer to source files from your package (i.e. don't use @top_srcdir@). If your package is built in some other directory, VPATH will be used to tell make where to look for the source files.
I see that Ralph just posted email. Perhaps he will say something entirely different. :-)
Bob ====================================== Bob Friesenhahn address@hidden, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
[Prev in Thread] | Current Thread | [Next in Thread] |