8 |
|
|
9 |
print MAKEFILE <<EOMAKE; |
print MAKEFILE <<EOMAKE; |
10 |
NEQ = \$(subst \$1,,\$2) |
NEQ = \$(subst \$1,,\$2) |
11 |
|
e = |
12 |
|
|
13 |
all: |
all: |
14 |
\t\@echo \$(if ,true,false) |
\t\@echo 1 \$(if ,true,false) |
15 |
\t\@echo \$(if ,true,) |
\t\@echo 2 \$(if ,true,) |
16 |
\t\@echo \$(if ,true) |
\t\@echo 3 \$(if ,true) |
17 |
\t\@echo \$(if z,true,false) |
\t\@echo 4 \$(if z,true,false) |
18 |
\t\@echo \$(if z,true,\$(shell echo hi)) |
\t\@echo 5 \$(if z,true,\$(shell echo hi)) |
19 |
\t\@echo \$(if ,\$(shell echo hi),false) |
\t\@echo 6 \$(if ,\$(shell echo hi),false) |
20 |
\t\@echo \$(if \$(call NEQ,a,b),true,false) |
\t\@echo 7 \$(if \$(call NEQ,a,b),true,false) |
21 |
\t\@echo \$(if \$(call NEQ,a,a),true,false) |
\t\@echo 8 \$(if \$(call NEQ,a,a),true,false) |
22 |
\t\@echo \$(if z,true,fal,se) hi |
\t\@echo 9 \$(if z,true,fal,se) hi |
23 |
\t\@echo \$(if ,true,fal,se)there |
\t\@echo 10 \$(if ,true,fal,se)there |
24 |
|
\t\@echo 11 \$(if \$(e) ,true,false) |
25 |
EOMAKE |
EOMAKE |
26 |
|
|
27 |
close(MAKEFILE); |
close(MAKEFILE); |
28 |
|
|
29 |
&run_make_with_options($makefile, "", &get_logfile); |
&run_make_with_options($makefile, "", &get_logfile); |
30 |
$answer = "false\n\n\ntrue\ntrue\nfalse\ntrue\nfalse\ntrue hi\nfal,sethere\n"; |
$answer = "1 false\n2\n3\n4 true\n5 true\n6 false\n7 true\n8 false\n9 true hi\n10 fal,sethere\n11 false\n"; |
31 |
&compare_output($answer, &get_logfile(1)); |
&compare_output($answer, &get_logfile(1)); |
32 |
|
|
33 |
1; |
1; |