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/targets/DEFAULT | |
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/targets/DEFAULT')
-rw-r--r-- | make/make-3.81/tests/scripts/targets/DEFAULT | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/make/make-3.81/tests/scripts/targets/DEFAULT b/make/make-3.81/tests/scripts/targets/DEFAULT deleted file mode 100644 index 0cabde9..0000000 --- a/make/make-3.81/tests/scripts/targets/DEFAULT +++ /dev/null @@ -1,53 +0,0 @@ -$description = "The following test creates a makefile to override part\n" - ."of one Makefile with Another Makefile with the .DEFAULT\n" - ."rule."; - -$details = "This tests the use of the .DEFAULT special target to say that \n" - ."to remake any target that cannot be made fram the information\n" - ."in the containing makefile, make should look in another makefile\n" - ."This test gives this makefile the target bar which is not \n" - ."defined here but passes the target bar on to another makefile\n" - ."which does have the target bar defined.\n"; - -$makefile2 = &get_tmpfile; - -open(MAKEFILE,"> $makefile"); - -# The Contents of the MAKEFILE ... - -print MAKEFILE "foo:\n"; -print MAKEFILE "\t\@echo Executing rule FOO\n\n"; -print MAKEFILE ".DEFAULT:\n"; -print MAKEFILE "\t\@\$(MAKE) -f $makefile2 \$\@ \n"; - -# END of Contents of MAKEFILE - -close(MAKEFILE); - - -open(MAKEFILE,"> $makefile2"); - -print MAKEFILE "bar:\n"; -print MAKEFILE "\t\@echo Executing rule BAR\n\n"; - -close(MAKEFILE); - -&run_make_with_options($makefile,'bar',&get_logfile); - -# Create the answer to what should be produced by this Makefile -$answer = "${make_name}[1]: Entering directory `$pwd'\n" - . "Executing rule BAR\n" - . "${make_name}[1]: Leaving directory `$pwd'\n"; - -# COMPARE RESULTS - -&compare_output($answer,&get_logfile(1)); - -# This tells the test driver that the perl test script executed properly. -1; - - - - - - |