Add better description.
[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.6 2005/02/26 11:25:02 okumoto Exp $
4
5 . ../../common.sh
6
7 run_test()
8 {
9         cat > 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         $MAKE 1> stdout 2> stderr
26         echo $? > status
27 }
28
29 desc_test()
30 {
31         echo "Variable expansion with M modifier"
32 }
33
34 eval_cmd $1