From d5870b7149bcb4058c21288827a5c79f2f12ccdb Mon Sep 17 00:00:00 2001 From: Tom Tanner Date: Mon, 7 Oct 2013 10:00:12 +0100 Subject: Fix names in several places and refer to the .PHONY command in the documentation. --- src/engine/SCons/EnvironmentTests.py | 2 +- src/engine/SCons/Node/NodeTests.py | 2 +- src/engine/SCons/Script/Main.xml | 14 +++++++++----- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/engine/SCons/EnvironmentTests.py b/src/engine/SCons/EnvironmentTests.py index a4fbefb..7fa8af4 100644 --- a/src/engine/SCons/EnvironmentTests.py +++ b/src/engine/SCons/EnvironmentTests.py @@ -3126,7 +3126,7 @@ def generate(env): assert t[4].precious def test_Pseudo(self): - """Test the Precious() method""" + """Test the Pseudo() method""" env = self.TestEnvironment(FOO='ggg', BAR='hhh') env.Dir('p_hhhb') env.File('p_d') diff --git a/src/engine/SCons/Node/NodeTests.py b/src/engine/SCons/Node/NodeTests.py index 620c09b..076ca65 100644 --- a/src/engine/SCons/Node/NodeTests.py +++ b/src/engine/SCons/Node/NodeTests.py @@ -694,7 +694,7 @@ class NodeTestCase(unittest.TestCase): assert node.precious == 7 def test_set_pseudo(self): - """Test setting a Node's phony value + """Test setting a Node's pseudo value """ node = SCons.Node.Node() node.set_pseudo() diff --git a/src/engine/SCons/Script/Main.xml b/src/engine/SCons/Script/Main.xml index 99e066e..147e778 100644 --- a/src/engine/SCons/Script/Main.xml +++ b/src/engine/SCons/Script/Main.xml @@ -685,18 +685,22 @@ Multiple targets can be passed in to a single call to - + (target, ...) -Marks each given +This indicates that each given target -as phony, indicating it should not be created by the build rule. If a -Phony target is created, this will cause an error. +should not be created by the build rule, and if the target is created, +an error will be generated. This is similar to the gnu make .PHONY +target. However, in the vast majority of cases, an +&f-Alias; +is more appropriate. + Multiple targets can be passed in to a single call to -&f-Phony;. +&f-Pseudo;. -- cgit v0.12