From d3019af24496592b70191ab4213e0e4da31e7c62 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Sat, 30 Nov 2013 12:09:10 +1100 Subject: [PATCH] Fix double slashes in make paths. CFG_BUILD_DIR, CFG_LLVM_SRC_DIR and CFG_SRC_DIR all have trailing slashes, by definition, so this is correct. --- configure | 2 +- mk/llvm.mk | 4 ++-- mk/tests.mk | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 2390016b3f1..98ceb01e9a7 100755 --- a/configure +++ b/configure @@ -608,7 +608,7 @@ CFG_PREFIX=${CFG_PREFIX%/} CFG_MANDIR=${CFG_MANDIR%/} CFG_HOST="$(echo $CFG_HOST | tr ',' ' ')" CFG_TARGET="$(echo $CFG_TARGET | tr ',' ' ')" -CFG_SUPPORTED_TARGET="$(grep ^CC_*=* $CFG_SRC_DIR/mk/platform.mk | sed -e 's/^CC_//' -e 's/\([^=]*\).*/\1/' | xargs)" +CFG_SUPPORTED_TARGET="$(grep ^CC_*=* ${CFG_SRC_DIR}mk/platform.mk | sed -e 's/^CC_//' -e 's/\([^=]*\).*/\1/' | xargs)" # copy host-triples to target-triples so that hosts are a subset of targets V_TEMP="" diff --git a/mk/llvm.mk b/mk/llvm.mk index 53f955bd284..efaa109c29e 100644 --- a/mk/llvm.mk +++ b/mk/llvm.mk @@ -14,8 +14,8 @@ LLVM_DEPS := $(S)/.gitmodules else # This is just a rough approximation of LLVM deps -LLVM_DEPS_SRC=$(call rwildcard,$(CFG_LLVM_SRC_DIR)/lib,*cpp *hpp) -LLVM_DEPS_INC=$(call rwildcard,$(CFG_LLVM_SRC_DIR)/include,*cpp *hpp) +LLVM_DEPS_SRC=$(call rwildcard,$(CFG_LLVM_SRC_DIR)lib,*cpp *hpp) +LLVM_DEPS_INC=$(call rwildcard,$(CFG_LLVM_SRC_DIR)include,*cpp *hpp) LLVM_DEPS=$(LLVM_DEPS_SRC) $(LLVM_DEPS_INC) endif diff --git a/mk/tests.mk b/mk/tests.mk index a24791d76af..f4a2102dc8d 100644 --- a/mk/tests.mk +++ b/mk/tests.mk @@ -98,7 +98,7 @@ ifdef CFG_UNIXY_$(1) endif ifdef CFG_WINDOWSY_$(1) - CFG_TESTLIB_$(1)=$$(CFG_BUILD_DIR)/$$(2)/$$(strip \ + CFG_TESTLIB_$(1)=$$(CFG_BUILD_DIR)$$(2)/$$(strip \ $$(if $$(findstring stage0,$$(1)), \ stage0/$$(CFG_LIBDIR), \ $$(if $$(findstring stage1,$$(1)), \