Replace legacy make with bmake
[dragonfly.git] / usr.bin / make / tests / variables / t1 / test.sh
1 #!/bin/sh
2
3 # $DragonFly: src/usr.bin/make/tests/variables/t1/test.sh,v 1.7 2005/03/01 22:42:28 okumoto Exp $
4
5 . ../../common.sh
6
7 setup_test()
8 {
9         cat > $WORK_BASE/Makefile << "_EOF_"
10 FILES   = \
11                 main.c globals.h \
12                 util.c util.h \
13                 map.c map.h \
14                 parser.y lexer.l \
15                 cmdman.1 format.5
16 all:
17         @echo "all files: ${FILES}"
18         @echo "cfiles: ${FILES:M*.c}"
19         @echo "hfiles: ${FILES:M*.h}"
20         @echo "grammer and lexer: ${FILES:M*.[ly]}"
21         @echo "man page: ${FILES:M*.[1-9]}"
22         @echo "utility files: ${FILES:Mutil.?}"
23         @echo "m files: ${FILES:Mm*}"
24 _EOF_
25 }
26
27 desc_test()
28 {
29         echo "Variable expansion with M modifier"
30 }
31
32 eval_cmd $1