1# $FreeBSD$ 2# 3# Test the M modifier. 4# 5FILES = \ 6 main.c globals.h \ 7 util.c util.h \ 8 map.c map.h \ 9 parser.y lexer.l \ 10 cmdman.1 format.5 11test1: 12 @echo "all files: ${FILES}" 13 @echo "cfiles: ${FILES:M*.c}" 14 @echo "hfiles: ${FILES:M*.h}" 15 @echo "grammar and lexer: ${FILES:M*.[ly]}" 16 @echo "man page: ${FILES:M*.[1-9]}" 17 @echo "utility files: ${FILES:Mutil.?}" 18 @echo "m files: ${FILES:Mm*}" 19