summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/make/makefile.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/plugins/project/make/makefile.lua')
-rw-r--r--xmake/plugins/project/make/makefile.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/plugins/project/make/makefile.lua b/xmake/plugins/project/make/makefile.lua
index 95df0ee86..02deeb3f9 100644
--- a/xmake/plugins/project/make/makefile.lua
+++ b/xmake/plugins/project/make/makefile.lua
@@ -233,8 +233,9 @@ function _make_target(makefile, target, targetflags)
makefile:printf("%s:", targetfile)
-- make dependence for the dependent targets
- for _, dep in ipairs(target:get("deps")) do
- makefile:write(" " .. project.target(dep):targetfile())
+ for _, depname in ipairs(target:get("deps")) do
+ local dep = project.target(depname)
+ makefile:write(" " .. (dep:isphony() and depname or dep:targetfile()))
end
-- make dependence for objects