⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 include

📁 make debug tool. You can use this tool to debug Makefile
💻
字号:
#                                     -*-mode: perl; rm-trailing-spaces: nil-*-$description = "Test various forms of the GNU make `include' command.";$details = "Test include, -include, sinclude and various regressions involving them.Test extra whitespace at the end of the include, multiple -includes andsincludes (should not give an error) and make sure that errors are reportedfor targets that were also -included.";$makefile2 = &get_tmpfile;open(MAKEFILE,"> $makefile");# The contents of the Makefile ...print MAKEFILE <<EOF;\#Extra space at the end of the following file nameinclude $makefile2                  all: ; \@echo There should be no errors for this makefile.-include nonexistent.mk-include nonexistent.mksinclude nonexistent.mksinclude nonexistent-2.mk-include makeit.mksinclude makeit.mkerror: makeit.mkEOFclose(MAKEFILE);open(MAKEFILE,"> $makefile2");print MAKEFILE "ANOTHER: ; \@echo This is another included makefile\n";close(MAKEFILE);# Create the answer to what should be produced by this Makefile&run_make_with_options($makefile, "all", &get_logfile);$answer = "There should be no errors for this makefile.\n";&compare_output($answer, &get_logfile(1));&run_make_with_options($makefile, "ANOTHER", &get_logfile);$answer = "This is another included makefile\n";&compare_output($answer, &get_logfile(1));# Try to build the "error" target; this will fail since we don't know# how to create makeit.mk, but we should also get a message (even though# the -include suppressed it during the makefile read phase, we should# see one during the makefile run phase).# The fix to this caused more problems than the error, so I removed it.# pds -- 22 Jan 2000#&run_make_with_options($makefile, "error", &get_logfile, 512);#$answer = "$make_name: *** No rule to make target `makeit.mk', needed by `error'.\n";#&compare_output($answer, &get_logfile(1));1;

⌨️ 快捷键说明

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