update dev300-m58
[ooovba.git] / dmake / tests / targets-3
blob288dd67f1e258904008dc7d1dc4dfd7a13e46a1f
1 #!/bin/sh
3 # 03.06.2006 Volker Quetschke
4 # .<suffix> targets were silently ignored despite the illegal syntax.
5 # (issue 65360)
7 : ${DMAKEPROG:=dmake}
8 file1="mfile1.mk"
9 tmpfiles="$file1"
11 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
13 # Remove files from prior failed run
14 rm -rf $tmpfiles
16 # Remember to quote variables in generated makefiles( $ -> \$ ).
17 # Testcase 1 - Check that warning is issued if .<suffix> targets are ignored
18 cat > $file1 <<EOT
19 SHELL*:=/bin/sh
20 SHELLFLAGS*:=-ce
22 .nada : something
24 something :
25 +echo "A target."
27 EOT
29 output1=`eval ${DMAKEPROG} -r -f $file1 2>&1 `
30 result1=$?
32 if echo $output1 | grep 'Warning: -- Ignoring AUGMAKE meta-target' > /dev/null 2>&1 ; then
33 result1=0
34 else
35 echo "Test 1: Wrong result: $output1"
36 echo
37 result1=1
40 if test $result1 -eq 0 ; then
41 echo "Success - Cleaning up"
42 rm -rf $tmpfiles
43 exit
44 result=0
45 else
46 echo "Failure!"
47 result=1
49 exit $result