📄 default_goal
字号:
# -*-perl-*-$description = "Test the .DEFAULT_GOAL special variable.";$details = "";# Test #1: basic logic.#run_make_test('# Basics.#foo: ; @:ifneq ($(.DEFAULT_GOAL),foo)$(error )endif# Reset to empty.#.DEFAULT_GOAL :=bar: ; @:ifneq ($(.DEFAULT_GOAL),bar)$(error )endif# Change to a different goal.#.DEFAULT_GOAL := bazbaz: ; @echo $@','','baz');# Test #2: unknown goal.#run_make_test('.DEFAULT_GOAL = foo','','#MAKE#: *** No rule to make target `foo\'. Stop.',512);# Test #3: more than one goal.#run_make_test('.DEFAULT_GOAL := foo bar','','#MAKE#: *** .DEFAULT_GOAL contains more than one target. Stop.',512);# Test #4: Savannah bug #12226.#run_make_test('define rulefoo: ; @echo $$@endefdefine make-rule$(eval $(rule))endef$(call make-rule)','','foo');# This tells the test driver that the perl test script executed properly.1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -