3 $description = "Test various flavors of make variable setting.";
29 # TEST 2: Append to recursive
41 # TEST 3: Append to simple
51 '', "Hello Goodbye\n");
53 # TEST 4: Conditional pre-set
65 # TEST 5: Conditional unset
76 # TEST 6: Simple using POSIX syntax
86 # TEST 7: POSIX syntax no spaces
96 # TEST 8: Append to empty
111 all: ; @: $(info recur=/$(recur)/ simple=/$(simple)/ recure=/$(recur_empty)/ simplee=/$(simple_empty)/ erecur=/$(empty_recur)/ esimple=/$(empty_simple)/)
113 '', "recur=/foo/ simple=/bar/ recure=/foo/ simplee=/bar/ erecur=// esimple=//\n");
115 # TEST 9: Line continuation
131 dep: ; @: $(info recur=/$(recur)/ simple=/$(simple)/)
133 '', "recur=/onetwothree/ simple=/fourfivesix/\n");
135 # TEST 9: Line continuation
152 dep: ; @: $(info recur=/$(recur)/ simple=/$(simple)/)
154 '', "recur=/onetwothree/ simple=/fourfivesix/\n");
157 # This creates a recursive variable, but it expands the RHS first. Any
158 # variable escapes ('$$') are preserved so that this recursive variable can be
159 # expanded again without changing its contents.
169 # POSIX :::= no spaces
179 # Variable escapes ('$$') are preserved.
182 foo :::= $(bar) $$what
185 all: ; @echo '$(foo)'
187 '', 'Good$bye $what');
189 # Append works as expected
196 all: ; @echo '$(foo)'
198 '', 'Good$bye $what Hello');