From 11e881a63821ea209bda509d1e502d9ba270782d Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Sun, 23 Mar 2014 16:21:51 +0100 Subject: make it possible to do 'make -C sw/' even with builddir!=srcdir The change in partial_build.mk assumes all the Makefile's using it are in builddir// , but that seems to be the case. Change-Id: Iddc8fa2ec0842f181780f7491cf5a2244efd014a --- autogen.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index f15dd91a534d..da967a420c9c 100755 --- a/autogen.sh +++ b/autogen.sh @@ -135,6 +135,13 @@ if ($src_path ne $build_path) { system ("ln -sf $src_path/configure.ac configure.ac"); system ("ln -sf $src_path/g g"); + my @modules = <$src_path/*/Makefile>; + foreach my $module (@modules) + { + my $dir = basename (dirname ($module)); + mkdir ($dir); + system ("ln -sf $src_path/$dir/Makefile $dir/Makefile"); + } } system ("$aclocal $aclocal_flags") && die "Failed to run aclocal"; unlink ("configure"); -- cgit