[Top][All Lists]

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

"include $(top_builddir)/" is ignored by automake

From: Tom Howard
Subject: "include $(top_builddir)/" is ignored by automake
Date: Wed, 02 Feb 2005 15:50:50 +1100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)


I use some m4 macros in my that produce a file called in the top build directory.  In my files I try
to include this by putting

include $(top_builddir)/

but instead of it being a automake include, it just remains a make
include (and not portable amongst other problems).

If I put



include ./

it works great (the contains the automaked contents of both
the and, but VPATH builds break (as . may not
be the top_builddir).

Now I'm guessing it doesn't work when I use $(top_builddir), because
normally the value of variables are not known until later (like when
it's processed with the autoconf generated configure script) and in the they are just set to @address@hidden  $(top_builddir) is an
exception to this as it has is value set correctly in the actual, rather than just the Makefile.

Is there anyway I can refer to that value besides using $(top_builddir)
so that automake includes the file, rather than leaving it for make to
include?   Or is there anyway I can make it include the file, despite
using $(top_builddir) in the include? I did some %TOPBDIR_P% entries or
similar in some internal automake files, but couldn't find anything that
would get substituted correctly.

Thanks in advance for any help you can provide.


Tom Howard

Public Key:

Attachment: tomhoward.vcf
Description: Vcard

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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