Version 3.6.0.4, tag libreoffice-3.6.0.4
[LibreOffice.git] / dmake / tests / targets-6
blob08ec6591a29ac9d9c0b4a65898465be78dc3c565
1 #!/bin/sh
3 # 13.06.2006 Volker Quetschke
4 # Pre 4.5 dmakes didn't handle .<suffix> targets if AUGMAKE was set.
5 # (issue 66365)
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 # Check that .NIX is treated as meta target, making all the target
18 # that gets build.
19 cat > $file1 <<EOT
20 SHELL*:=/bin/sh
21 SHELLFLAGS*:=-ce
23 AUGMAKE=yes
25 .NIX : ; @+echo ".NIX Treated as a normal target"
27 all :
28 @+echo "Fallthrough"
30 EOT
32 output1=`eval ${DMAKEPROG} -r -f $file1 2>&1 `
33 result1=$?
35 if echo $output1 | grep 'Fallthrough' > /dev/null 2>&1 ; then
36 dummy=1
37 # OK
38 else
39 echo "Test 1: Wrong result: $output1"
40 echo
41 result1=1
44 if test $result1 -eq 0 ; then
45 echo "Success - Cleaning up"
46 rm -rf $tmpfiles
47 result=0
48 else
49 echo "Failure!"
50 result=1
52 exit $result