VirtualBox

source: kBuild/branches/GNU/src/gmake/tests/scripts/features/varnesting@ 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: 624 bytes
Line 
1$description = "The following test creates a makefile to ...";
2
3$details = "";
4
5open(MAKEFILE,"> $makefile");
6
7# The Contents of the MAKEFILE ...
8
9print MAKEFILE "x = variable1\n"
10 ."variable2 := Hello\n"
11 ."y = \$(subst 1,2,\$(x))\n"
12 ."z = y\n"
13 ."a := \$(\$(\$(z)))\n"
14 ."all: \n"
15 ."\t\@echo \$(a)\n";
16
17# END of Contents of MAKEFILE
18
19close(MAKEFILE);
20
21&run_make_with_options($makefile,"",&get_logfile);
22
23# Create the answer to what should be produced by this Makefile
24$answer = "Hello\n";
25
26&compare_output($answer,&get_logfile(1));
27
281;
29
30
31
32
33
34
Note: See TracBrowser for help on using the repository browser.

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