summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-01-26 13:43:20 -0500
committerMike Frysinger <vapier@gentoo.org>2013-01-26 13:43:20 -0500
commit406b1aba4b47c8313f764c68b79eefb697ef5525 (patch)
treee94e58e500ce6b85ba01aff65c00c775f8a8b7cb
parent4a8786ceef8c82d1ffa13cbac983b12f0afc0271 (diff)
buildsys: clean up path scrubbing a bit
This just makes it easier to read -- no functional changes. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--Rules.mak11
1 files changed, 6 insertions, 5 deletions
diff --git a/Rules.mak b/Rules.mak
index 9d621b5b7..68c9d82a9 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -100,11 +100,12 @@ endif
export ARCH
# Make certain these contain a final "/", but no "//"s.
-TARGET_SUBARCH:=$(call qstrip,$(TARGET_SUBARCH))
-RUNTIME_PREFIX:=$(strip $(subst //,/, $(subst ,/, $(call qstrip,$(RUNTIME_PREFIX)))))
-DEVEL_PREFIX:=$(strip $(subst //,/, $(subst ,/, $(call qstrip,$(DEVEL_PREFIX)))))
-MULTILIB_DIR:=$(strip $(subst //,/, $(subst ,/, $(call qstrip,$(MULTILIB_DIR)))))
-KERNEL_HEADERS:=$(strip $(subst //,/, $(subst ,/, $(call qstrip,$(KERNEL_HEADERS)))))
+scrub_path = $(strip $(subst //,/, $(subst ,/, $(call qstrip,$(1)))))
+TARGET_SUBARCH := $(call qstrip,$(TARGET_SUBARCH))
+RUNTIME_PREFIX := $(call scrub_path,$(RUNTIME_PREFIX))
+DEVEL_PREFIX := $(call scrub_path,$(DEVEL_PREFIX))
+MULTILIB_DIR := $(call scrub_path,$(MULTILIB_DIR))
+KERNEL_HEADERS := $(call scrub_path,$(KERNEL_HEADERS))
export RUNTIME_PREFIX DEVEL_PREFIX KERNEL_HEADERS MULTILIB_DIR