diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-01-19 19:31:00 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-01-19 19:36:47 +0900 |
commit | d014ea6ccc8767cec7c17538cf830d35ad7deb60 (patch) | |
tree | 98350ad153354688b083fa23112d27dba53f651b /make_helpers | |
parent | a6ca78881f36e4c4443444778f02e2e73346f90f (diff) |
Build: strip trailing slashes from directory paths more simply
Append . then strip /. seems clumsy. Just use $(patsubst %/,%, ).
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'make_helpers')
-rw-r--r-- | make_helpers/build_macros.mk | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/make_helpers/build_macros.mk b/make_helpers/build_macros.mk index 24d5924e..2312d2c9 100644 --- a/make_helpers/build_macros.mk +++ b/make_helpers/build_macros.mk @@ -300,9 +300,8 @@ define MAKE_BL # ordering is not relevant but sort removes duplicates. $(eval TEMP_OBJ_DIRS := $(sort $(BUILD_DIR)/ $(dir ${OBJS} ${LINKERFILE}))) # The $(dir ) function leaves a trailing / on the directory names - # We append a . then strip /. from each, to remove the trailing / characters - # This gives names suitable for use as make rule targets. - $(eval OBJ_DIRS := $(subst /.,,$(addsuffix .,$(TEMP_OBJ_DIRS)))) + # Rip off the / to match directory names with make rule targets. + $(eval OBJ_DIRS := $(patsubst %/,%,$(TEMP_OBJ_DIRS))) # Create generators for object directory structure |