[Top][All Lists]

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

autoreconf doesn't follow includes.

From: Carlo Wood
Subject: autoreconf doesn't follow includes.
Date: Thu, 21 Feb 2019 20:05:38 +0100


I'm using a Makefile.am that has an include, like so:

---begin of Makefile.am---
include $(srcdir)/cwm4/root_makefile_top.am
SUBDIRS = googletest @CW_SUBDIRS@ src 

include $(srcdir)/cwm4/root_makefile_bottom.am ---end of Makefile.am
---end of Makefile.am

I do this because every project that I have is the same, except for

This works fine with all autotools except autoreconf;
for example

sean:~/projects/aicxx/ai-evio-testsuite/ai-evio-testsuite>autoreconf -v -i -s 
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal 

which is wrong because autoreconf ignores the line

ACLOCAL_AMFLAGS = -I cwm4/aclocal -I m4/aclocal

in $(srcdir)/cwm4/root_makefile_top.am

See https://www.gnu.org/software/automake/manual/html_node/Include.html
why this is legal usage of automake.

Carlo Wood <address@hidden>

reply via email to

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