From 11545b91d539b5c354c1423755be2a3809794bb6 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 11 Apr 2014 14:24:15 +0200 Subject: Revert "make it possible to do 'make -C sw/' even with builddir!=srcdir" This reverts commit 11e881a63821ea209bda509d1e502d9ba270782d, which assumed that "all the Makefile's using it are in builddir//", which is not the case for the external/ sub-modules. --- autogen.sh | 7 ------- solenv/gbuild/partial_build.mk | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/autogen.sh b/autogen.sh index da967a420c9c..f15dd91a534d 100755 --- a/autogen.sh +++ b/autogen.sh @@ -135,13 +135,6 @@ 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"); diff --git a/solenv/gbuild/partial_build.mk b/solenv/gbuild/partial_build.mk index eb2b5ccee365..68e807b97615 100644 --- a/solenv/gbuild/partial_build.mk +++ b/solenv/gbuild/partial_build.mk @@ -22,7 +22,7 @@ gb_Side:=host endif ifeq (,$(BUILDDIR)) -BUILDDIR := $(dir $(abspath $(firstword $(MAKEFILE_LIST)))).. +BUILDDIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))../.. endif ifeq ($(BUILD_TYPE),) -- cgit