2012-06-08 23:57:36 +02:00
|
|
|
|
|
|
|
X=a b c d e
|
|
|
|
|
|
|
|
.for x in $X
|
|
|
|
LIB${x:tu}=/tmp/lib$x.a
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
X_LIBS= ${LIBA} ${LIBD} ${LIBE}
|
|
|
|
|
|
|
|
LIB?=a
|
|
|
|
|
|
|
|
var = head
|
|
|
|
res = no
|
|
|
|
.if !empty(var:M${:Uhead\:tail:C/:.*//})
|
|
|
|
res = OK
|
|
|
|
.endif
|
|
|
|
|
2017-04-15 02:51:18 +02:00
|
|
|
all: show-libs check-cclass
|
|
|
|
|
|
|
|
show-libs:
|
2012-06-08 23:57:36 +02:00
|
|
|
@for x in $X; do ${.MAKE} -f ${MAKEFILE} show LIB=$$x; done
|
|
|
|
@echo "Mscanner=${res}"
|
|
|
|
|
|
|
|
show:
|
|
|
|
@echo 'LIB=${LIB} X_LIBS:M$${LIB$${LIB:tu}} is "${X_LIBS:M${LIB${LIB:tu}}}"'
|
|
|
|
@echo 'LIB=${LIB} X_LIBS:M*/lib$${LIB}.a is "${X_LIBS:M*/lib${LIB}.a}"'
|
|
|
|
@echo 'LIB=${LIB} X_LIBS:M*/lib$${LIB}.a:tu is "${X_LIBS:M*/lib${LIB}.a:tu}"'
|
2017-04-15 02:51:18 +02:00
|
|
|
|
|
|
|
LIST= One Two Three Four five six seven
|
|
|
|
|
|
|
|
check-cclass:
|
|
|
|
@echo Upper=${LIST:M[A-Z]*}
|
|
|
|
@echo Lower=${LIST:M[^A-Z]*}
|
2017-05-11 00:40:27 +02:00
|
|
|
@echo nose=${LIST:M[^s]*[ex]}
|