[git commit] buildsys: clean up path scrubbing a bit
Mike Frysinger
vapier at gentoo.org
Sat Jan 26 18:43:20 UTC 2013
commit: http://git.uclibc.org/uClibc/commit/?id=406b1aba4b47c8313f764c68b79eefb697ef5525
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
This just makes it easier to read -- no functional changes.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
Rules.mak | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/Rules.mak b/Rules.mak
index 9d621b5..68c9d82 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
More information about the uClibc-cvs
mailing list