3 $description = "Test the override directive on variable assignments.";
7 # TEST 0: Basic override
12 override simple := $(X)
14 all: ; @echo "$(recur) $(simple)"
16 'recur=I simple=J', "end start\n");
18 # TEST 1: Override with append
25 all: ; @echo "$(X) $(Y)"
29 # TEST 2: Override with append to the command line
31 run_make_test(undef, 'X=C Y=C', "C X2 C Y1\n");
33 # Test override of define/endef
37 @echo First comes the definition.
38 @echo Then comes the override.
42 'foo=Hello', "First comes the definition.\nThen comes the override.\n");