main shinobi / tests / mk / gnu / variables / DEFAULT_GOAL / t001 / mk
 1
 2# Basics.
 3#
 4foo: ; @:
 5
 6ifneq ($(.DEFAULT_GOAL),foo)
 7$(error )
 8endif
 9
10# Reset to empty.
11#
12.DEFAULT_GOAL :=
13
14bar: ; @:
15
16ifneq ($(.DEFAULT_GOAL),bar)
17$(error )
18endif
19
20# Change to a different goal.
21#
22
23.DEFAULT_GOAL := baz
24
25baz: ; @echo $@