summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/make/makefile.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-03-05 22:42:07 +0800
committerruki <[email protected]>2021-03-05 22:42:07 +0800
commit1e293d3a5f31afed5e4f78670d66b5b18ccc2608 (patch)
tree72ca0441699eb35457f59a302a0d35340fe5de16 /xmake/plugins/project/make/makefile.lua
parent97e94809e0ffb871b2e8a7554ad3eb54a034c525 (diff)
add is_default
Diffstat (limited to 'xmake/plugins/project/make/makefile.lua')
-rw-r--r--xmake/plugins/project/make/makefile.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/plugins/project/make/makefile.lua b/xmake/plugins/project/make/makefile.lua
index 6a8d18650..75afafa92 100644
--- a/xmake/plugins/project/make/makefile.lua
+++ b/xmake/plugins/project/make/makefile.lua
@@ -392,8 +392,7 @@ function _make_all(makefile)
-- make all
local default = ""
for targetname, target in pairs(project.targets()) do
- local isdefault = target:get("default")
- if isdefault == nil or isdefault == true then
+ if target:is_default() then
default = default .. " " .. targetname
end
end