summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/makefile.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-03 18:04:18 +0800
committerruki <[email protected]>2015-06-03 18:04:18 +0800
commit795001d9b03960d9a8fc290e6f6f9710f49c86bc (patch)
treecff700e27fc2e754b3a686d8d23f6b58a1792e6a /xmake/scripts/base/makefile.lua
parent81970742272dc8b6f406f91f216374777786d256 (diff)
impl verbose output for building
Diffstat (limited to 'xmake/scripts/base/makefile.lua')
-rw-r--r--xmake/scripts/base/makefile.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/xmake/scripts/base/makefile.lua b/xmake/scripts/base/makefile.lua
index 1c2261629..3c18cfb87 100644
--- a/xmake/scripts/base/makefile.lua
+++ b/xmake/scripts/base/makefile.lua
@@ -54,9 +54,11 @@ function makefile._make_object(file, target, srcfile, objfile)
file:write(string.format(" %s\n", srcfile))
-- make body
+ local cmd = c:make(target, filetype, srcfile, objfile)
file:write(string.format("\t@echo [%s]: compiling %s\n", config.get("mode"), srcfile))
+ file:write(string.format("\t@xmake l $(VERBOSE) verbose \"%s\"\n", cmd:gsub("%s", "%%20")))
file:write(string.format("\t@xmake l mkdir %s\n", path.directory(objfile)))
- file:write(string.format("\t@%s > %s 2>&1\n", c:make(target, filetype, srcfile, objfile), makefile._LOGFILE))
+ file:write(string.format("\t@%s > %s 2>&1\n", cmd, makefile._LOGFILE))
-- make tail
file:write("\n")
@@ -127,9 +129,11 @@ function makefile._make_target(file, name, target)
file:write("\n")
-- make body
+ local cmd = l:make(target, objfiles, targetfile)
file:write(string.format("\t@echo [%s]: linking %s\n", config.get("mode"), path.filename(targetfile)))
+ file:write(string.format("\t@xmake l $(VERBOSE) verbose \"%s\"\n", cmd:gsub("%s", "%%20")))
file:write(string.format("\t@xmake l mkdir %s\n", path.directory(targetfile)))
- file:write(string.format("\t@%s > %s 2>&1\n", l:make(target, objfiles, targetfile), makefile._LOGFILE))
+ file:write(string.format("\t@%s > %s 2>&1\n", cmd, makefile._LOGFILE))
-- make tail
file:write("\n")