From 9756b9b4f03f4c3c5e258bf8bb7558063f48d981 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 22 Feb 2007 00:59:28 +0000 Subject: [PATCH] A jam invocation without given target (or the "all" target) in the output directory, the build system root directory, or the "src" directory is now using the "haiku-image" target instead. The variable HAIKU_ORIGINAL_JAM_TARGETS is set to the original JAM_TARGETS value, so that a UserBuildConfig can base its decisions on it. The feature is only available with Haiku's jam version. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20194 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- build/jam/BuildSetup | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build/jam/BuildSetup b/build/jam/BuildSetup index 83e400e36b..a12d4d7e3c 100644 --- a/build/jam/BuildSetup +++ b/build/jam/BuildSetup @@ -11,6 +11,17 @@ # directory paths and the like. +# If the target to be built is "all" (i.e. the default) and we're in the output +# directory, the root directory of the build system, or in "src/", we change the +# target to be built to "haiku-image". +HAIKU_ORIGINAL_JAM_TARGETS = $(JAM_TARGETS) ; +if $(JAM_TARGETS) = all { + if ! $(INVOCATION_SUBDIR) || $(INVOCATION_SUBDIR) = src { + JAM_TARGETS = haiku-image ; + } +} + + # Include BuildConfig/Timezones/libgccObjects { local buildConfig = [ GLOB $(HAIKU_BUILD_OUTPUT_DIR) : BuildConfig ] ;