netfab
2018-01-24 10:38:17 UTC
Hi,
I'm using automake-1.15.1 to build a project using recursive makefiles.
Into that project, there's a subdirectory to build a library using
libtool-2.4.6. The source code of this library is organized into
I'm using automake-1.15.1 to build a project using recursive makefiles.
Into that project, there's a subdirectory to build a library using
libtool-2.4.6. The source code of this library is organized into
mylib/makefile.am
mylib/aaa.cpp
mylib/aaa.h
mylib/foo/bbb.cpp
mylib/foo/bbb.h
mylib/bar/ccc.cpp
mylib/bar/ccc.h
libmyLIB_la_SOURCES = \
aaa.cpp aaa.h \
foo/bbb.cpp foo/bbb.h \
bar/ccc.cpp bar/ccc.h
AM_INIT_AUTOMAKE([subdir-objects])
When building the whole project, it works fine.mylib/aaa.cpp
mylib/aaa.h
mylib/foo/bbb.cpp
mylib/foo/bbb.h
mylib/bar/ccc.cpp
mylib/bar/ccc.h
libmyLIB_la_SOURCES = \
aaa.cpp aaa.h \
foo/bbb.cpp foo/bbb.h \
bar/ccc.cpp bar/ccc.h
AM_INIT_AUTOMAKE([subdir-objects])
make distcheck
make[5]: Entering directory '/path/to/project/build/src/lib/mylib'
make[5]: *** No rule to make target 'foo/bbb.h ', needed by 'distdir'. Stop.
Any advice ? Thanks.make[5]: Entering directory '/path/to/project/build/src/lib/mylib'
make[5]: *** No rule to make target 'foo/bbb.h ', needed by 'distdir'. Stop.