~ubuntu-branches/ubuntu/utopic/gridengine/utopic

« back to all changes in this revision

Viewing changes to source/3rdparty/qmake/tests/scripts/variables/MAKELEVEL

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2008-06-25 22:36:13 UTC
  • Revision ID: james.westby@ubuntu.com-20080625223613-tvd9xlhuoct9kyhm
Tags: upstream-6.2~beta2
ImportĀ upstreamĀ versionĀ 6.2~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#                                                               -*-perl-mode-*-
 
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
SHELL = /bin/sh
 
13
all:
 
14
\t\@echo MAKELEVEL is \$(MAKELEVEL)
 
15
\techo \$\$MAKELEVEL
 
16
EOF
 
17
 
 
18
# END of Contents of MAKEFILE
 
19
 
 
20
close(MAKEFILE);
 
21
 
 
22
# RUN MAKE
 
23
 
 
24
&run_make_with_options($makefile,"",&get_logfile);
 
25
 
 
26
# SET ANSWER
 
27
 
 
28
$answer = "MAKELEVEL is 0\necho \$MAKELEVEL\n1\n";
 
29
 
 
30
# COMPARE RESULTS
 
31
 
 
32
&compare_output($answer,&get_logfile(1));
 
33
 
 
34
1;