dash-b

来自「make debug tool. You can use this tool t」· 代码 · 共 44 行

TXT
44
字号
#                                                                    -*-perl-*-$description = "Test make -B (always remake) option.\n";$details = "\Construct a simple makefile that builds a target.Invoke make once, so it builds everything.  Invoke it again and verifythat nothing is built.  Then invoke it with -B and verify that everythingis built again.";open(MAKEFILE,"> $makefile");print MAKEFILE <<'EOF';.SUFFIXES:.PHONY: allall: foofoo: bar.x	@echo cp $< $@	@echo "" > $@EOFclose(MAKEFILE);&touch('bar.x');&run_make_with_options($makefile, '', &get_logfile);$answer = "cp bar.x foo\n";&compare_output($answer, &get_logfile(1));&run_make_with_options($makefile, '', &get_logfile);$answer = "$make_name: Nothing to be done for `all'.\n";&compare_output($answer, &get_logfile(1));&run_make_with_options($makefile, '-B', &get_logfile);$answer = "cp bar.x foo\n";&compare_output($answer, &get_logfile(1));unlink('bar.x', 'foo') unless $keep;1;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?