3 # 10.08.2007 Volker Quetschke
4 # Check that the .PHONY attribute works with %-targets.
11 tmpfiles
="$file1 $file2 $file3"
13 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
15 # Remove files from prior failed run
18 # Remember to quote variables in generated makefiles( $ -> \$ ).
26 @+printf " and \$@.\n"
35 touch phonyfile.a phonyfile.b
36 # Avoid that phonyfile.a has the same time stamp as phonyfile.b after
37 # that has been rebuild.
40 output1
=`eval ${DMAKEPROG} -rf $file1 phonyfile.a 2>&1 `
43 if test "$output1" != "Build phonyfile.b and phonyfile.a."; then
44 echo "Wrong result: $output1"
50 if test $result1 -eq 0 ; then
51 echo "Success - Cleaning up"