3 # 24.09.2007 Volker Quetschke
4 # Check that the .REMOVE target does not crash dmake in parallel builds.
12 tmpfiles
="$file1 $file2 $file3 $file4"
14 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
16 # Remove files from prior failed run
19 # Remember to quote variables in generated makefiles( $ -> \$ ).
24 .REMOVE :; @echo remove intermediate target: \$<
41 output1
=`eval ${DMAKEPROG} -P2 -rf $file1 2>&1`
44 if test $result1 -ne 0; then
45 echo "Failure! Remove the corefile!"
46 echo "Output: $output1"
52 if test $result1 -eq 0 ; then
53 echo "Success - Cleaning up"