[Top][All Lists]

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

Re: Relative path in CPPFLAGS and distcheck

From: Alexandre Duret-Lutz
Subject: Re: Relative path in CPPFLAGS and distcheck
Date: Sun, 05 Dec 2004 06:36:21 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

[Please reply to address@hidden

>>> "Robert" == Robert Lowe <address@hidden> writes:

 Robert> Hi!
 Robert> I have a set of common headers files in includes/ and the following
 Robert> line in

 Robert> AC_SUBST(CPPFLAGS,[-I../includes])

Should be 
  AC_SUBST([AM_CPPFLAGS], ['-I$(top_srcdir)/includes'])
  AC_SUBST([AM_CPPFLAGS], ['-I$(top_srcdir)/includes 
if you have built headers.

See the thread "RFC for new FAQ entry: Flag Variables Ordering"
on the Automake lists to understand why redefining plain
CPPFLAGS is wrong.

 Robert> ...since all source files are in parallel directories.  

(The above doesn't require this.)


 Robert> Also, is it perfectly legit to list these files in the top-level
 Robert> as EXTRA_DIST, rather than explicitly listing this
 Robert> subdirectory, adding a there, ... since there's
 Robert> nothing to build there?

Yes.  However you'd better use noinst_HEADERS instead of
EXTRA_DIST so that `make tags' and friends process the headers.
Alexandre Duret-Lutz

reply via email to

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