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

« back to all changes in this revision

Viewing changes to source/3rdparty/qmake/tests/scripts/functions/substitution

  • 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
$description = "The following test creates a makefile to ...";
 
2
 
 
3
$details = "";
 
4
 
 
5
open(MAKEFILE,"> $makefile");
 
6
 
 
7
# The Contents of the MAKEFILE ...
 
8
 
 
9
print MAKEFILE "foo := a.o b.o c.o\n"
 
10
              ."bar := \$(foo:.o=.c)\n"
 
11
              ."bar2:= \$(foo:%.o=%.c)\n"
 
12
              ."bar3:= \$(patsubst %.c,%.o,x.c.c bar.c)\n"
 
13
              ."all:\n"
 
14
              ."\t\@echo \$(bar)\n"
 
15
              ."\t\@echo \$(bar2)\n"
 
16
              ."\t\@echo \$(bar3)\n";
 
17
 
 
18
# END of Contents of MAKEFILE
 
19
 
 
20
close(MAKEFILE);
 
21
 
 
22
&run_make_with_options($makefile,"",&get_logfile);
 
23
 
 
24
# Create the answer to what should be produced by this Makefile
 
25
$answer = "a.c b.c c.c\n"
 
26
         ."a.c b.c c.c\n"
 
27
         ."x.c.o bar.o\n";
 
28
 
 
29
&compare_output($answer,&get_logfile(1));
 
30
 
 
31
1;
 
32
 
 
33
 
 
34
 
 
35
 
 
36
 
 
37