summaryrefslogtreecommitdiff
path: root/xmake/scripts/action/_config.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-05-18 12:45:41 +0800
committerruki <[email protected]>2015-05-18 12:45:41 +0800
commit3f53e1ea0f6c9deff5295e689df141feba9cce4c (patch)
treee8f461081849fa77b31a3b29e57e846de8cd5e8f /xmake/scripts/action/_config.lua
parent4e9518e18e817551772545092b186e8f570b4a0f (diff)
make target and dependence for makefile
Diffstat (limited to 'xmake/scripts/action/_config.lua')
-rw-r--r--xmake/scripts/action/_config.lua19
1 files changed, 9 insertions, 10 deletions
diff --git a/xmake/scripts/action/_config.lua b/xmake/scripts/action/_config.lua
index 53e41b651..1af22d27e 100644
--- a/xmake/scripts/action/_config.lua
+++ b/xmake/scripts/action/_config.lua
@@ -24,7 +24,6 @@
local _config = _config or {}
-- load modules
-local os = require("base/os")
local utils = require("base/utils")
local config = require("base/config")
local makefile = require("base/makefile")
@@ -32,17 +31,17 @@ local makefile = require("base/makefile")
-- done the given config
function _config.done()
- -- the configs
- local configs = config._CONFIGS
- assert(configs and configs.buildir)
-
- -- make the build directory
- if not os.isdir(configs.buildir) then
- assert(os.mkdir(configs.buildir))
- end
-
-- save configs
if not config.savexconf() then
+ -- error
+ utils.error("save configure failed!")
+ return false
+ end
+
+ -- make makefile
+ if not makefile.make() then
+ -- error
+ utils.error("make makefile failed!")
return false
end