diff options
author | Kenneth Heafield <github@kheafield.com> | 2011-12-05 15:09:48 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2011-12-05 15:09:48 +0400 |
commit | 0095bef95289a1b28ff6fd0bc15d30b94cc4dd0a (patch) | |
tree | 558fd3ef7c52ddbc6549deb575bcf867281822d0 /Jamroot | |
parent | b8b009136f6079744417d7e1bc7863b7f0876b6e (diff) |
Also support just clean...
Diffstat (limited to 'Jamroot')
-rw-r--r-- | Jamroot | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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. |