automake
[Top][All Lists]
Advanced

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

Re: substitution vs expansion in Makefile.am


From: Ralf Wildenhues
Subject: Re: substitution vs expansion in Makefile.am
Date: Tue, 4 Mar 2008 23:40:51 +0100
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

* John Calcote wrote on Tue, Mar 04, 2008 at 11:34:54PM CET:
> 
>    registrarTest_SOURCES = registrar.c\
>       @top_srcdir@/common/mySleep.c

Hmm, putting variables in *_SOURCES is problematic as the dependency
tracking code in m4/depout.m4 is really dumb and may do the wrong thing.
$(top_srcdir) is certainly better than @top_srcdir@ here, but it may
even be that for correct functionality you need to just spell it out
with runs of "../".

>    registrarTest_CPPFLAGS = -DREGISTRAR_TEST\
>       -I$(top_srcdir)/common

This is fine.

Cheers,
Ralf




reply via email to

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