diff options
| author | ruki <[email protected]> | 2017-04-01 00:50:15 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-04-01 00:50:15 +0800 |
| commit | 4124df8db74770f526942dbb18c4c834b39b917a (patch) | |
| tree | cb58b86c2a53f85adef61be4cf416595178f7ba4 /xmake/actions/install/install.lua | |
| parent | 4e14211557bc663a2e4e43eadf7420fe99984050 (diff) | |
add --all arguments for build, install and package
Diffstat (limited to 'xmake/actions/install/install.lua')
| -rw-r--r-- | xmake/actions/install/install.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/actions/install/install.lua b/xmake/actions/install/install.lua index 720e300b6..c1e1d9c3d 100644 --- a/xmake/actions/install/install.lua +++ b/xmake/actions/install/install.lua @@ -80,13 +80,13 @@ function install(targetname) _g.finished = {} -- install the given target? - if targetname then + if targetname and not targetname:startswith("__") then _install_target_and_deps(project.target(targetname)) else -- install default or all targets for _, target in pairs(project.targets()) do local default = target:get("default") - if default == nil or default == true then + if default == nil or default == true or targetname == "__all" then _install_target_and_deps(target) end end |
