vpathgpath

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

TXT
67
字号
#                                                                    -*-perl-*-$description = "Tests VPATH+/GPATH functionality.";$details = "";$VP = "$workdir$pathsep";open(MAKEFILE,"> $makefile");# The Contents of the MAKEFILE ...print MAKEFILE "VPATH = $VP\n";print MAKEFILE <<'EOMAKE';GPATH = $(VPATH).SUFFIXES: .a .b .c .d.PHONY: general rename notarget intermediate%.a:%.b:%.c:%.d:%.a : %.b ; cat $^ > $@%.b : %.c ; cat $^ > $@%.c :: %.d ; cat $^ > $@# General testing info:general: foo.bfoo.b: foo.c bar.cEOMAKEclose(MAKEFILE);@touchedfiles = ();$off = -500;sub touchfiles {  foreach (@_) {    ($f = $_) =~ s,VP/,$VP,g;    &utouch($off, $f);    $off += 10;    push(@touchedfiles, $f);  }}# Run the general-case test&touchfiles("VP/foo.d", "VP/bar.d", "VP/foo.c", "VP/bar.c", "foo.b", "bar.d");&run_make_with_options($makefile,"general",&get_logfile());push(@touchedfiles, "bar.c");$answer = "$make_name: Nothing to be done for `general'.\n";&compare_output($answer,&get_logfile(1));unlink(@touchedfiles) unless $keep;1;

⌨️ 快捷键说明

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