Etienne Carriere | 3ddc362 | 2017-03-13 15:31:15 +0100 | [diff] [blame] | 1 | # Makefile script used in various OP-TEE test components |
2 | |||||
3 | # Since 'clean' make rules rely on 'rmdir', removed directories shall | ||||
4 | # not end with 'current directory' (./ or .) subpath information. | ||||
5 | # This macro remove trailing './' info from input path. | ||||
6 | define strip-trailing-slashes-and-dots | ||||
7 | $(eval _o := $(patsubst %/,%,$(patsubst %/.,%,$(1))))$(if \ | ||||
8 | $(filter-out $(1),$(_o)),$(call strip-trailing-slashes-and-dots,$(_o)),$(_o)) | ||||
9 | endef |