3 # 04.09.2005 Volker Quetschke
4 # Tests $(shell ..) if function macro is executed after previous recipe lines
5 # when using two concurrend (or more) processes.
11 tmpfiles
="$file1 $file2"
13 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
15 trap 'rm -rf $tmpfiles' 1 2 3 15
17 # Remember to quote variables in generated makefiles( $ -> \$ ).
19 # Testing continuation char in recipes
26 +echo teststring > $file2
27 +echo A\$(shell cat $file2)A
30 ${DMAKEPROG} -P2 -r -f $file1
33 test $result -eq 0 && echo "Success - Cleaning up" && rm -f ${tmpfiles}
34 test $result -ne 0 && echo "Failure!"