From d0b59e3dda9af3e9891e55506728df5c17eb1e21 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 19 Feb 2010 18:39:38 +0000 Subject: Make the explicit target of each dependency, including libraries, to solve problems with integrating QDBM into build system (default target tries to build stuff we don't want). --- infrastructure/makebuildenv.pl.in | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'infrastructure/makebuildenv.pl.in') diff --git a/infrastructure/makebuildenv.pl.in b/infrastructure/makebuildenv.pl.in index b8f499be..3783c765 100755 --- a/infrastructure/makebuildenv.pl.in +++ b/infrastructure/makebuildenv.pl.in @@ -479,6 +479,7 @@ __E } my @all_deps_for_module; + { # work out what dependencies need to be run my @deps_raw; @@ -768,7 +769,27 @@ __E # run make for things we require for my $dep (@all_deps_for_module) { - $deps_makeinfo .= "\t\t\$(HIDE) (cd ../../$dep; \$(MAKE)$sub_make_options -q \$(DEPENDMAKEFLAGS) -D NODEPS || \$(MAKE)$sub_make_options \$(DEPENDMAKEFLAGS) -D NODEPS)\n"; + my $dep_target = ""; + if ($dep =~ m|^lib/(.*)|) + { + $dep_target = "\$(OUTBASE)/$dep/$1.a"; + } + elsif ($dep =~ m|^.*/(.*)|) + { + $dep_target = "\$(OUTBASE)/$dep/$1$platform_exe_ext"; + } + else + { + $dep_target = "lib$dep.a"; + } + + $deps_makeinfo .= <