diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-01-26 13:43:20 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-01-26 13:43:20 -0500 |
commit | 406b1aba4b47c8313f764c68b79eefb697ef5525 (patch) | |
tree | e94e58e500ce6b85ba01aff65c00c775f8a8b7cb | |
parent | 4a8786ceef8c82d1ffa13cbac983b12f0afc0271 (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.mak | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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 |