VirtualBox

source: kBuild/trunk/src/gmake/tests/scripts/variables/MAKE@ 285

最後變更 在這個檔案從285是 285,由 bird 提交於 20 年 前

This commit was generated by cvs2svn to compensate for changes in r284,
which included commits to RCS files with non-trunk default branches.

  • 屬性 svn:eol-style 設為 native
檔案大小: 898 位元組
 
1# -*-perl-*-
2
3$description = "The following test creates a makefile to test MAKE \n"
4 ."(very generic)";
5
6$details = "DETAILS";
7
8open(MAKEFILE,"> $makefile");
9
10# The Contents of the MAKEFILE ...
11
12print MAKEFILE "TMP := \$(MAKE)\n";
13print MAKEFILE "MAKE := \$(subst X=\$(X),,\$(MAKE))\n\n";
14print MAKEFILE "all:\n";
15print MAKEFILE "\t\@echo \$(TMP)\n";
16print MAKEFILE "\t\$(MAKE) -f $makefile foo\n\n";
17print MAKEFILE "foo:\n";
18print MAKEFILE "\t\@echo \$(MAKE)\n";
19
20# END of Contents of MAKEFILE
21
22close(MAKEFILE);
23
24# Create the answer to what should be produced by this Makefile
25$answer = "$mkpath\n$mkpath -f $makefile foo\n"
26 . "${make_name}[1]: Entering directory `$pwd'\n"
27 . "$mkpath\n${make_name}[1]: Leaving directory `$pwd'\n";
28
29&run_make_with_options($makefile,"",&get_logfile,0);
30
31&rmfiles("foo");
32# COMPARE RESULTS
33&compare_output($answer,&get_logfile(1));
34
351;
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette