From ae2ab76faca93cad3059808b14d02f5565275e31 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Tue, 30 Nov 2010 14:48:52 +0000 Subject: Check if the target-specific variable is the same as the global variable, and if so don't try to update it. Savannah bug #31743. --- tests/scripts/features/targetvars | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/scripts') diff --git a/tests/scripts/features/targetvars b/tests/scripts/features/targetvars index 6afd48a..a9b8dbe 100644 --- a/tests/scripts/features/targetvars +++ b/tests/scripts/features/targetvars @@ -237,6 +237,16 @@ a: ; @echo "$(FOO)" run_make_test(undef, 'FOO=C', "C f1\n"); +# TEST #19: Conditional variables with command-line settings + +run_make_test(' +a: FOO ?= f1 +a: ; @echo "$(FOO)" +', + '', "f1\n"); + +run_make_test(undef, 'FOO=C', "C\n"); + # TEST #20: Check for continuation after semicolons run_make_test(q! -- cgit v1.2.3