How to properly manage multi-level SUBDIRS in Makefile.am:s?

Posted by Jukka Dahlbom on Stack Overflow See other posts from Stack Overflow or by Jukka Dahlbom
Published on 2010-04-15T13:41:57Z Indexed on 2010/04/15 13:43 UTC
Read the original article Hit count: 363

Filed under:
|

Working on platform WinXP with MinGW (gcc4.4) / MSYS, I am trying to get autotools build working for Apache Axis C, which does not support MinGW yet.

A common issue automake complains about is caused by following lines in various Makefile.am:s

axis-c-trunk/src/core/Makefile.am:
SUBDIRS = [other child dirs] deployment transport/http/util transport/http/common engine transport

The intent of this line is to force the order of building so that transport/http/util and transport/http/common are build before the engine directory, and building rest of the transport after engine is build.

This line causes the following error when running automake under MinGW:

src/core/Makefile.am:1: directory should not contain `/'

Now, what would be the correct way of directly including grandchildren directories so that it would functionally work like ordinary SUBDIRS inclusion for immediate child directories?

© Stack Overflow or respective owner

Related posts about automake

Related posts about subdirs