diff options
author | Lukc <lukc@upyum.com> | 2010-12-12 04:13:19 +0100 |
---|---|---|
committer | Lukc <lukc@upyum.com> | 2010-12-12 04:13:19 +0100 |
commit | 9769d39d792c1e912234e23e663ba8bd21a6386e (patch) | |
tree | 76bf5a6a6c756cf78c73a847b2ff3ec97f048ee7 /make/make-3.81/tests/scripts/misc/general2 | |
parent | abb6804a2c95065cbc228c3726781d44ed04e6cd (diff) | |
download | base-9769d39d792c1e912234e23e663ba8bd21a6386e.tar.gz base-9769d39d792c1e912234e23e663ba8bd21a6386e.tar.bz2 base-9769d39d792c1e912234e23e663ba8bd21a6386e.tar.xz base-9769d39d792c1e912234e23e663ba8bd21a6386e.zip |
Recette de make retir?e.
Diffstat (limited to 'make/make-3.81/tests/scripts/misc/general2')
-rw-r--r-- | make/make-3.81/tests/scripts/misc/general2 | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/make/make-3.81/tests/scripts/misc/general2 b/make/make-3.81/tests/scripts/misc/general2 deleted file mode 100644 index fb5c3aa..0000000 --- a/make/make-3.81/tests/scripts/misc/general2 +++ /dev/null @@ -1,50 +0,0 @@ -# -*-perl-*- - -$description = "The following test creates a makefile to test the -simple functionality of make. It is the same as -general_test1 except that this one tests the -definition of a variable to hold the object filenames."; - -open(MAKEFILE,"> $makefile"); - -# The contents of the Makefile ... - -print MAKEFILE <<EOF; -VPATH = $workdir -objects = main.o kbd.o commands.o display.o insert.o -edit: \$(objects) -\t\@echo cc -o edit \$(objects) -main.o : main.c defs.h -\t\@echo cc -c main.c -kbd.o : kbd.c defs.h command.h -\t\@echo cc -c kbd.c -commands.o : command.c defs.h command.h -\t\@echo cc -c commands.c -display.o : display.c defs.h buffer.h -\t\@echo cc -c display.c -insert.o : insert.c defs.h buffer.h -\t\@echo cc -c insert.c -EOF - -close(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.c -cc -c insert.c\ncc -o edit main.o kbd.o commands.o display.o insert.o\n"; - -if (&compare_output($answer,&get_logfile(1))) { - unlink @files_to_touch; -} - -1; |