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