Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2011-12-05 15:09:48 +0400
committerKenneth Heafield <github@kheafield.com>2011-12-05 15:09:48 +0400
commit0095bef95289a1b28ff6fd0bc15d30b94cc4dd0a (patch)
tree558fd3ef7c52ddbc6549deb575bcf867281822d0 /Jamroot
parentb8b009136f6079744417d7e1bc7863b7f0876b6e (diff)
Also support just clean...
Diffstat (limited to 'Jamroot')
-rw-r--r--Jamroot8
1 files changed, 6 insertions, 2 deletions
diff --git a/Jamroot b/Jamroot
index 999683e3b..a6b26d5ec 100644
--- a/Jamroot
+++ b/Jamroot
@@ -56,6 +56,9 @@
#-j$NCPUS to compile in parallel
#--clean to clean
+import option ;
+import modules ;
+
path-constant TOP : . ;
# Shell with trailing line removed http://lists.boost.org/boost-build/2007/08/17051.php
@@ -67,10 +70,11 @@ rule _shell ( cmd : extras * ) {
return [ trim-nl [ SHELL $(cmd) : $(extras) ] ] ;
}
-import option ;
-
local cleaning = [ option.get "clean" : : yes ] ;
cleaning ?= [ option.get "clean-all" : no : yes ] ;
+if "clean" in [ modules.peek : ARGV ] {
+ cleaning = yes ;
+}
constant CLEANING : $(cleaning) ;
#Run g++ with empty main and these arguments to see if it passes.