~ubuntu-branches/debian/sid/make-doc-non-dfsg/sid

« back to all changes in this revision

Viewing changes to tests/scripts/variables/MAKELEVEL

  • Committer: Package Import Robot
  • Author(s): Manoj Srivastava
  • Date: 2014-05-04 18:48:47 UTC
  • mfrom: (4.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20140504184847-50zxi1b08m22ehle
Tags: 4.0-2
Move to usntable, since the make binary package has been uploaded
there. No changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#                                                                    -*-perl-*-
 
2
 
 
3
$description = "The following test creates a makefile to test
 
4
makelevels in Make. It prints \$(MAKELEVEL) and then
 
5
prints the environment variable MAKELEVEL";
 
6
 
 
7
open(MAKEFILE,"> $makefile");
 
8
 
 
9
# The Contents of the MAKEFILE ...
 
10
 
 
11
print MAKEFILE <<EOF;
 
12
all:
 
13
\t\@echo MAKELEVEL is \$(MAKELEVEL)
 
14
\techo \$\$MAKELEVEL
 
15
EOF
 
16
 
 
17
# END of Contents of MAKEFILE
 
18
 
 
19
close(MAKEFILE);
 
20
 
 
21
# RUN MAKE
 
22
 
 
23
&run_make_with_options($makefile,"",&get_logfile);
 
24
 
 
25
# SET ANSWER
 
26
 
 
27
$answer = "MAKELEVEL is 0\necho \$MAKELEVEL\n1\n";
 
28
 
 
29
# COMPARE RESULTS
 
30
 
 
31
&compare_output($answer,&get_logfile(1));
 
32
 
 
33
1;