Home | History | Annotate | Line # | Download | only in unit-tests
      1  1.5  rillig # $NetBSD: varmod-tail.mk,v 1.5 2024/06/01 18:44:05 rillig Exp $
      2  1.1  rillig #
      3  1.2  rillig # Tests for the :T variable modifier, which returns the basename of each of
      4  1.2  rillig # the words in the variable value.
      5  1.1  rillig 
      6  1.5  rillig 
      7  1.5  rillig # If the ':T' is not directly followed by a delimiting ':' or '}', the
      8  1.5  rillig # ':from=to' modifier is tried as a fallback.
      9  1.5  rillig .if ${:U Tail :Tail=replaced} != "replaced"
     10  1.5  rillig .  error
     11  1.5  rillig .endif
     12  1.5  rillig 
     13  1.5  rillig 
     14  1.1  rillig all:
     15  1.4  rillig .for path in a/b/c def a.b.c a.b/c a a.a .gitignore a a.a trailing/
     16  1.3  rillig 	@echo "tail (basename) of '"${path:Q}"' is '"${path:T:Q}"'"
     17  1.3  rillig .endfor
     18