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 |
|
---|
6 | open(MAKEFILE,"> $makefile");
|
---|
7 |
|
---|
8 | # The Contents of the MAKEFILE ...
|
---|
9 |
|
---|
10 | print MAKEFILE "TMP := \$(MAKE)\n";
|
---|
11 | print MAKEFILE "MAKE := \$(subst X=\$(X),,\$(MAKE))\n\n";
|
---|
12 | print MAKEFILE "all:\n";
|
---|
13 | print MAKEFILE "\t\@echo \$(TMP)\n";
|
---|
14 | print MAKEFILE "\t\$(MAKE) -f $makefile foo\n\n";
|
---|
15 | print MAKEFILE "foo:\n";
|
---|
16 | print MAKEFILE "\t\@echo \$(MAKE)\n";
|
---|
17 |
|
---|
18 | # END of Contents of MAKEFILE
|
---|
19 |
|
---|
20 | close(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 |
|
---|
33 | 1;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.