summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-16 00:43:24 +0800
committerruki <[email protected]>2024-07-16 00:43:24 +0800
commitc29298c7573bc18ff0e7f78277fd64781751a4ba (patch)
tree9b4190fb5319e4a9be062104d66b948fc87aa788
parent91401d48f5bfb1dd7b7624c7c7d8fea44bd9e07a (diff)
only install specific target
-rw-r--r--xmake/actions/install/install.lua2
-rw-r--r--xmake/actions/uninstall/uninstall.lua2
2 files changed, 0 insertions, 4 deletions
diff --git a/xmake/actions/install/install.lua b/xmake/actions/install/install.lua
index ae9857ed3..95f634fe6 100644
--- a/xmake/actions/install/install.lua
+++ b/xmake/actions/install/install.lua
@@ -110,13 +110,11 @@ function main(targetname, group_pattern)
local targets = {}
if targetname and not targetname:startswith("__") then
local target = project.target(targetname)
- table.join2(targets, target:orderdeps())
table.insert(targets, target)
else
for _, target in ipairs(project.ordertargets()) do
local group = target:get("group")
if (target:is_default() and not group_pattern) or targetname == "__all" or (group_pattern and group and group:match(group_pattern)) then
- table.join2(targets, target:orderdeps())
table.insert(targets, target)
end
end
diff --git a/xmake/actions/uninstall/uninstall.lua b/xmake/actions/uninstall/uninstall.lua
index 5aade0313..76feafd56 100644
--- a/xmake/actions/uninstall/uninstall.lua
+++ b/xmake/actions/uninstall/uninstall.lua
@@ -110,13 +110,11 @@ function main(targetname)
local targets = {}
if targetname and not targetname:startswith("__") then
local target = project.target(targetname)
- table.join2(targets, target:orderdeps())
table.insert(targets, target)
else
for _, target in ipairs(project.ordertargets()) do
local group = target:get("group")
if (target:is_default() and not group_pattern) or targetname == "__all" or (group_pattern and group and group:match(group_pattern)) then
- table.join2(targets, target:orderdeps())
table.insert(targets, target)
end
end