From 4ff6d49f35f562a6eea4b5f35009809c821e247c Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 20 Nov 2002 00:46:04 +0000 Subject: [PATCH] Added setting of the variables for header and jamfile cache files and moved BuildConfig into build/. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2026 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- Jamrules | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Jamrules b/Jamrules index be279f5eaa..43227c9ac4 100644 --- a/Jamrules +++ b/Jamrules @@ -26,16 +26,24 @@ if ! $(INVOCATION_SUBDIR_SET) { } # vanilla Jam compatibility +# The directory for build system specific files +OBOS_BUILD_DIR = [ FDirName $(OBOS_TOP) build ] ; + +# Cache files for header scanning and jamfile caching +HCACHEFILE = header_cache ; +JCACHEFILE = jamfile_cache ; +LOCATE on $(HCACHEFILE) $(JCACHEFILE) = $(OBOS_BUILD_DIR) ; # Include BuildConfig { - local buildConfig = [ GLOB $(OBOS_TOP) : BuildConfig ] ; + local buildConfig = [ GLOB $(OBOS_BUILD_DIR) : BuildConfig ] ; if ! $(buildConfig) { - EXIT "No BuildConfig!" - "Run ./configure in the source tree's root directory first!" ; + ECHO "No BuildConfig found in $(OBOS_BUILD_DIR)!" ; + EXIT "Run ./configure in the source tree's root directory first!" ; } - include $(buildConfig) ; + LOCATE on BuildConfig = $(OBOS_BUILD_DIR) ; + include BuildConfig ; } # We do not include any local BeOS system headers by default