2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 00:52:16 +00:00

Merge from trunk.

[SVN r33793]
This commit is contained in:
Vladimir Prus
2006-04-24 14:00:53 +00:00
parent 950c2f47ea
commit 1545ecaf48
3 changed files with 20 additions and 11 deletions

View File

@@ -386,10 +386,15 @@ else if $(clean)
for local t in [ virtual-target.all-targets ]
{
local p = [ $(t).project ] ;
if $(t) in $(targets-to-clean)
|| [ is-child [ $(p).project-module ] ] = true
{
to-clean += $(t) ;
# Remove only derived targets.
if [ $(t).action ]
{
if $(t) in $(targets-to-clean)
|| [ is-child [ $(p).project-module ] ] = true
{
to-clean += $(t) ;
}
}
}
local to-clean-actual ;

View File

@@ -72,7 +72,7 @@ rule cast ( name type : sources * : requirements * : default-build *
if ! $(real-type)
{
errors.user-error "No type corresponds to main target rule nam '$(type)'"
: "Hint: try lowercase the name" ;
: "Hint: try lowercase name" ;
}

View File

@@ -114,13 +114,17 @@ t.expect_nothing("sub2/bin/$toolset/debug/sub2.obj")
t.expect_nothing("sub3/bin/$toolset/debug/sub3.obj")
# Regression test: sources of the 'cast' rule were mistakenly
# deleted.
t.rm(".")
t.write("Jamroot", """
import cast ;
cast a cpp : a.h ;
""")
t.write("a.h", "")
t.run_build_system("--clean")
t.expect_nothing("a.h")
t.cleanup()