VirtualBox

source: kBuild/branches/GNU/src/gmake/tests/scripts/variables/MAKE@ 54

Last change on this file since 54 was 53, checked in by bird, 21 years ago

Initial revision

  • Property svn:eol-style set to native
File size: 871 bytes
Line 
1$description = "The following test creates a makefile to test MAKE \n"
2 ."(very generic)";
3
4$details = "DETAILS";
5
6open(MAKEFILE,"> $makefile");
7
8# The Contents of the MAKEFILE ...
9
10print MAKEFILE "TMP := \$(MAKE)\n";
11print MAKEFILE "MAKE := \$(subst X=\$(X),,\$(MAKE))\n\n";
12print MAKEFILE "all:\n";
13print MAKEFILE "\t\@echo \$(TMP)\n";
14print MAKEFILE "\t\$(MAKE) -f $makefile foo\n\n";
15print MAKEFILE "foo:\n";
16print MAKEFILE "\t\@echo \$(MAKE)\n";
17
18# END of Contents of MAKEFILE
19
20close(MAKEFILE);
21
22# Create the answer to what should be produced by this Makefile
23$answer = "$mkpath\n$mkpath -f $makefile foo\n"
24 . "${make_name}[1]: Entering directory `$pwd'\n"
25 . "$mkpath\n${make_name}[1]: Leaving directory `$pwd'\n";
26
27&run_make_with_options($makefile,"",&get_logfile,0);
28
29&delete("foo");
30# COMPARE RESULTS
31&compare_output($answer,&get_logfile(1));
32
331;
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette