Sync usage with man page.
[netbsd-mini2440.git] / usr.bin / make / unit-tests / modmatch
blob48a1befb58b6ac5bbc8e375091f9186251ed4713
2 X=a b c d e
4 .for x in $X
5 LIB${x:tu}=/tmp/lib$x.a
6 .endfor
8 X_LIBS= ${LIBA} ${LIBD} ${LIBE}
10 LIB?=a
12 var = head
13 res = no
14 .if !empty(var:M${:Uhead\:tail:C/:.*//})
15 res = OK
16 .endif
18 all:
19         @for x in $X; do ${.MAKE} -f ${MAKEFILE} show LIB=$$x; done
20         @echo "Mscanner=${res}"
22 show:
23         @echo 'LIB=${LIB} X_LIBS:M$${LIB$${LIB:tu}} is "${X_LIBS:M${LIB${LIB:tu}}}"'
24         @echo 'LIB=${LIB} X_LIBS:M*/lib$${LIB}.a is "${X_LIBS:M*/lib${LIB}.a}"'
25         @echo 'LIB=${LIB} X_LIBS:M*/lib$${LIB}.a:tu is "${X_LIBS:M*/lib${LIB}.a:tu}"'