summaryrefslogtreecommitdiff
path: root/xmake/scripts/tools/make.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-11 16:58:01 +0800
committerruki <[email protected]>2015-06-11 16:58:01 +0800
commit882430fde4f0066e9adbbb664b98612fa4cf3bc1 (patch)
treef5eeeb2961d22bfd68a80d95404e07396791336e /xmake/scripts/tools/make.lua
parent76fd1ccaf43262df8fae3d9d3bfba1c2f0e04ca5 (diff)
add self for tools
Diffstat (limited to 'xmake/scripts/tools/make.lua')
-rw-r--r--xmake/scripts/tools/make.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/xmake/scripts/tools/make.lua b/xmake/scripts/tools/make.lua
index 25dd13515..3927aedb5 100644
--- a/xmake/scripts/tools/make.lua
+++ b/xmake/scripts/tools/make.lua
@@ -28,25 +28,25 @@ local utils = require("base/utils")
local make = make or {}
-- the init function
-function make.init(name)
+function make.init(self, name)
-- save name
- make.name = name or "make"
+ self.name = name or "make"
-- is verbose?
- make._VERBOSE = utils.ifelse(xmake._OPTIONS.verbose, "-v", "")
+ self._VERBOSE = utils.ifelse(xmake._OPTIONS.verbose, "-v", "")
end
-- the main function
-function make.main(mkfile, target)
+function make.main(self, mkfile, target)
-- make command
local cmd = nil
if mkfile and os.isfile(mkfile) then
- cmd = string.format("%s -j4 -f %s %s VERBOSE=%s 2> %s", make.name, mkfile, target or "", make._VERBOSE, xmake._NULDEV)
+ cmd = string.format("%s -j4 -f %s %s VERBOSE=%s 2> %s", self.name, mkfile, target or "", self._VERBOSE, xmake._NULDEV)
else
- cmd = string.format("%s -j4 %s VERBOSE=%s 2> %s", make.name, target or "", make._VERBOSE, xmake._NULDEV)
+ cmd = string.format("%s -j4 %s VERBOSE=%s 2> %s", self.name, target or "", self._VERBOSE, xmake._NULDEV)
end
-- done