VirtualBox

source: kBuild/trunk/src/kmk/tests/scripts/variables/MAKEFILES@ 947

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

Initial revision

  • Property svn:eol-style set to native
File size: 739 bytes
Line 
1# -*-perl-*-
2
3$description = "Test the MAKEFILES variable.";
4
5$makefile2 = &get_tmpfile;
6$makefile3 = &get_tmpfile;
7
8open(MAKEFILE,"> $makefile");
9print MAKEFILE 'all: ; @echo DEFAULT RULE: M2=$(M2) M3=$(M3)', "\n";
10close(MAKEFILE);
11
12
13open(MAKEFILE,"> $makefile2");
14print MAKEFILE <<EOF;
15M2 = m2
16NDEF: ; \@echo RULE FROM MAKEFILE 2
17EOF
18close(MAKEFILE);
19
20
21open(MAKEFILE,"> $makefile3");
22print MAKEFILE <<EOF;
23M3 = m3
24NDEF3: ; \@echo RULE FROM MAKEFILE 3
25EOF
26close(MAKEFILE);
27
28
29&run_make_with_options($makefile, "MAKEFILES='$makefile2 $makefile3'",
30 &get_logfile);
31$answer = "DEFAULT RULE: M2=m2 M3=m3\n";
32&compare_output($answer,&get_logfile(1));
33
341;
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