update dev300-m58
[ooovba.git] / dmake / tests / targets-17
blobcea9c633615da2d5d6c52afe0f94faade1b50637
1 #!/bin/sh
3 # 08.10.2006 Volker Quetschke
4 # Check that empty dynamic prerequisites are handled correctly.
5 # (issue 70210)
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 cat > $file1 <<EOT
18 SHELL*:=/bin/sh
19 SHELLFLAGS*:=-ce
21 EMPTYPRQ=
23 all : \$\$(EMPTYPRQ)
24 echo all
25 EOT
27 output1=`eval ${DMAKEPROG} -rf $file1 2>&1 `
28 result1=$?
31 if test $result1 -eq 0 ; then
32 echo "Success - Cleaning up"
33 rm -rf $tmpfiles
34 else
35 echo "Failure! dmake reported:"
36 echo "$output1"
38 exit $result