[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem installing headers in subdirectories with [nobase_]pkginclude_HE
Problem installing headers in subdirectories with [nobase_]pkginclude_HEADERS
Thu, 20 Mar 2014 14:18:23 +0200
I have a little problem with Automake to handle the subdirectories when
Here is roughly the project hierarchy that I have:
Nothing too fancy, there is a root directory containing the configure.ac,
and 3 subdirectories for the shared library, the main binary, and the tests.
The interesting part here is project-lib/. It contains the library that the
binary and tests link to.
Since I want to be able to generate the configure files out of the source
tree, I've settled to use $top_srcdir relative path in my Makefile.am.
Here is what it looks like:
libfoo_la_SOURCES = \
pkginclude_HEADERS = \
Without these $top_srcdir relative path, I have problems when I try to use
the foo-lib from foo-bin, or when I try to generate the project out of the
Now the problem: when installing these headers, they end up being flattened!
That is, I end up with:
While I was expecting:
So I assume that is what nobase_ is supposed to achieve, but since the path
I use are not relative to the Makefile.am, but to $top_srcdir, I end up
with the whole $top_srcdir path being copied:
which is clearly not what is expected.
Any thoughts and advises on this are greatly appreciated :)
If you need access to the real Makefile.am files, instead of the canonical
examples, the project is here:
Thanks so much for reading.
|[Prev in Thread]
||[Next in Thread]|
- Problem installing headers in subdirectories with [nobase_]pkginclude_HEADERS,
Aurélien Vallée <=