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

📄 conditionals

📁 make debug tool. You can use this tool to debug Makefile
💻
字号:
#                                                                    -*-perl-*-$description = "Check GNU make conditionals.";$details = "Attempt various different flavors of GNU make conditionals.";open(MAKEFILE,"> $makefile");# The Contents of the MAKEFILE ...print MAKEFILE <<'EOMAKE';objects = foo.objarg1 = firstarg2 = secondarg3 = thirdarg4 = ccarg5 = secondall:ifeq ($(arg1),$(arg2))	@echo arg1 equals arg2else	@echo arg1 NOT equal arg2endififeq '$(arg2)' "$(arg5)"	@echo arg2 equals arg5else	@echo arg2 NOT equal arg5endififneq '$(arg3)' '$(arg4)'	@echo arg3 NOT equal arg4else	@echo arg3 equal arg4endififndef undefined	@echo variable is undefinedelse	@echo variable undefined is definedendififdef arg4	@echo arg4 is definedelse	@echo arg4 is NOT definedendifEOMAKEclose(MAKEFILE);&run_make_with_options($makefile,"",&get_logfile,0);$answer = "arg1 NOT equal arg2arg2 equals arg5arg3 NOT equal arg4variable is undefinedarg4 is defined";&compare_output($answer,&get_logfile(1));# Test expansion of variables inside ifdef.$makefile2 = &get_tmpfile;open(MAKEFILE, "> $makefile2");print MAKEFILE <<'EOF';foo = 1FOO = fooF = fDEF = noDEF2 = noifdef $(FOO)DEF = yesendififdef $(F)ooDEF2 = yesendifall:; @echo DEF=$(DEF) DEF2=$(DEF2)EOFclose(MAKEFILE)&run_make_with_options($makefile2,"",&get_logfile,0);$answer = "DEF=yes DEF2=yes\n";&compare_output($answer,&get_logfile(1));# This tells the test driver that the perl test script executed properly.1;

⌨️ 快捷键说明

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