summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/make/makefile.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-03-05 22:41:06 +0800
committerruki <[email protected]>2021-03-05 22:41:06 +0800
commit97e94809e0ffb871b2e8a7554ad3eb54a034c525 (patch)
tree1f81d3047ff4b7cf615df5dacd044d606fadd5b8 /xmake/plugins/project/make/makefile.lua
parentecb7b50da9471f2ebc5d44d01c72e7860776e2c9 (diff)
add is_enabled
Diffstat (limited to 'xmake/plugins/project/make/makefile.lua')
-rw-r--r--xmake/plugins/project/make/makefile.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/plugins/project/make/makefile.lua b/xmake/plugins/project/make/makefile.lua
index 68098563d..6a8d18650 100644
--- a/xmake/plugins/project/make/makefile.lua
+++ b/xmake/plugins/project/make/makefile.lua
@@ -214,7 +214,7 @@ end
function _make_target(makefile, target, targetflags)
-- is phony target?
- if target:isphony() then
+ if target:is_phony() then
return _make_phony(makefile, target)
end
@@ -226,7 +226,7 @@ function _make_target(makefile, target, targetflags)
-- make dependence for the dependent targets
for _, depname in ipairs(target:get("deps")) do
local dep = project.target(depname)
- makefile:write(" " .. (dep:isphony() and depname or dep:targetfile()))
+ makefile:write(" " .. (dep:is_phony() and depname or dep:targetfile()))
end
-- make dependence for objects
@@ -359,7 +359,7 @@ function _make_all(makefile)
-- make variables for target
local targetflags = {}
for targetname, target in pairs(project.targets()) do
- if not target:isphony() then
+ if not target:is_phony() then
-- make target linker
local program = _get_program_from_target(target, target:linker():kind())
@@ -426,7 +426,7 @@ function _clean_target(makefile, target)
makefile:print("")
-- make body
- if not target:isphony() then
+ if not target:is_phony() then
-- remove the target file
_remove(makefile, target:targetfile())