diff options
Diffstat (limited to 'xmake/scripts/action')
| -rw-r--r-- | xmake/scripts/action/_build.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/xmake/scripts/action/_build.lua b/xmake/scripts/action/_build.lua index 7fea4be22..4b4b72687 100644 --- a/xmake/scripts/action/_build.lua +++ b/xmake/scripts/action/_build.lua @@ -80,6 +80,24 @@ function _build.done() end end + -- check makefile + if not os.isfile(rule.makefile()) then + + -- make the configure file for the given target + if not project.makeconf(options.target) then + -- error + utils.error("make configure failed!") + return false + end + + -- make makefile + if not makefile.make() then + -- error + utils.error("make makefile failed!") + return false + end + end + -- build target for makefile if not makefile.build(target_name) then -- error |
