📄 general1
字号:
# -*-perl-*-$description = "The following test creates a makefile to test thesimple functionality of make. It mimics therebuilding of a product with dependencies.It also tests the simple definition of VPATH.";open(MAKEFILE,"> $makefile");print MAKEFILE <<EOF;VPATH = $workdiredit: main.o kbd.o commands.o display.o \\ insert.o\t\@echo cc -o edit main.o kbd.o commands.o display.o \\ insert.omain.o : main.c defs.h\t\@echo cc -c main.ckbd.o : kbd.c defs.h command.h\t\@echo cc -c kbd.ccommands.o : command.c defs.h command.h\t\@echo cc -c commands.cdisplay.o : display.c defs.h buffer.h\t\@echo cc -c display.cinsert.o : insert.c defs.h buffer.h\t\@echo cc -c insert.cEOFclose(MAKEFILE);@files_to_touch = ("$workdir${pathsep}main.c","$workdir${pathsep}defs.h", "$workdir${pathsep}kbd.c","$workdir${pathsep}command.h", "$workdir${pathsep}commands.c","$workdir${pathsep}display.c", "$workdir${pathsep}buffer.h","$workdir${pathsep}insert.c", "$workdir${pathsep}command.c");&touch(@files_to_touch);&run_make_with_options($makefile,"",&get_logfile);# Create the answer to what should be produced by this Makefile$answer = "cc -c main.c\ncc -c kbd.c\ncc -c commands.c\ncc -c display.ccc -c insert.c\ncc -o edit main.o kbd.o commands.o display.o insert.o\n";# COMPARE RESULTSif (&compare_output($answer,&get_logfile(1))) { unlink @files_to_touch;}1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -