diff options
| author | ruki <[email protected]> | 2015-12-28 18:59:43 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-12-28 18:59:43 +0800 |
| commit | ad9b35fd836a38d72c39efc112300ab5d92503ba (patch) | |
| tree | 0c84be2250e27952fb6821b77fd96c3167a78513 /xmake/scripts/action/_clean.lua | |
| parent | e0dab0305d1967b57b12d2deb94e4253bf7cde06 (diff) | |
add clean all
Diffstat (limited to 'xmake/scripts/action/_clean.lua')
| -rw-r--r-- | xmake/scripts/action/_clean.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/scripts/action/_clean.lua b/xmake/scripts/action/_clean.lua index 8399f2410..677ff2470 100644 --- a/xmake/scripts/action/_clean.lua +++ b/xmake/scripts/action/_clean.lua @@ -27,6 +27,7 @@ local _clean = _clean or {} local clean = require("base/clean") local config = require("base/config") local project = require("base/project") +local utils = require("base/utils") local platform = require("platform/platform") -- need access to the given file? @@ -55,7 +56,7 @@ function _clean.done() end -- clean the current target - if not clean.remove(options.target) then + if not clean.remove(options.target, utils.ifelse(options.all, "all", "build")) then return false end @@ -89,6 +90,8 @@ function _clean.menu() , " 2. The Envirnoment Variable: XMAKE_PROJECT_DIR" , " 3. The Current Directory" } , {} + , {'a', "all", "k", nil, "Clean all auto-generated files by xmake." } + , {} , {'v', "verbose", "k", nil, "Print lots of verbose information." } , {nil, "version", "k", nil, "Print the version number and exit." } , {'h', "help", "k", nil, "Print this help message and exit." } |
