2 $description = "Test the .DEFAULT_GOAL special variable.";
7 # Test #1: basic logic.
14 ifneq ($(.DEFAULT_GOAL),foo)
24 ifneq ($(.DEFAULT_GOAL),bar)
28 # Change to a different goal.
39 # Test #2: unknown goal.
45 "#MAKE#: *** No rule to make target 'foo'. Stop.",
49 # Test #3: more than one goal.
52 .DEFAULT_GOAL := foo bar
55 '#MAKE#: *** .DEFAULT_GOAL contains more than one target. Stop.',
59 # Test #4: Savannah bug #12226.
76 # TEST #5: .DEFAULT_GOAL containing just whitespace (Savannah bug #25697)
80 .DEFAULT_GOAL = $N $N # Just whitespace
84 '', "#MAKE#: *** No targets. Stop.\n", 512);
86 # This tells the test driver that the perl test script executed properly.