You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
434 B

# Makefile script used in various OP-TEE test components
# Since 'clean' make rules rely on 'rmdir', removed directories shall
# not end with 'current directory' (./ or .) subpath information.
# This macro remove trailing './' info from input path.
define strip-trailing-slashes-and-dots
$(eval _o := $(patsubst %/,%,$(patsubst %/.,%,$(1))))$(if \
$(filter-out $(1),$(_o)),$(call strip-trailing-slashes-and-dots,$(_o)),$(_o))
endef