diff options
| author | ruki <[email protected]> | 2020-07-01 00:53:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-06-30 23:22:09 +0800 |
| commit | cb6d357208b2db9516aaa0046bca751e51b32ec2 (patch) | |
| tree | 8934118728fae7d4a1a9aa91964a0e6e2ad3697e /xmake/plugins/project/make/makefile.lua | |
| parent | 7210ca7ea63dd201cee8d10081fee8f065ec6c44 (diff) | |
improve makefile generator
Diffstat (limited to 'xmake/plugins/project/make/makefile.lua')
| -rw-r--r-- | xmake/plugins/project/make/makefile.lua | 5 |
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 |
