3 # 03.08.2007 Volker Quetschke
4 # Check that a %-target without prereq has precedence over one with
11 tmpfiles
="$file1 $file2"
13 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
15 # Remove files from prior failed run
18 # Create test environment
21 # Remember to quote variables in generated makefiles( $ -> \$ ).
26 .REMOVE : ; @echo remove \$<
29 @echo Wrong choice - $@
39 output1
=`eval ${DMAKEPROG} -rf $file1 2>&1 `
42 if test "$output1" != "Right choice"; then
43 echo "Wrong result: $output1"
49 if test $result1 -eq 0 ; then
50 echo "Success - Cleaning up"