summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/makefile.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-12-05 23:29:53 +0800
committerruki <[email protected]>2015-12-05 23:29:53 +0800
commit55baf72274c1aeefceb125f49a4da77e1d49bf40 (patch)
tree47c62985a6f4b535984d1fd58fc152610cd90364 /xmake/scripts/base/makefile.lua
parent82fc443c84a02c7cf19248c5f9a70ef9f3a2032f (diff)
add warning for matching files
Diffstat (limited to 'xmake/scripts/base/makefile.lua')
-rw-r--r--xmake/scripts/base/makefile.lua13
1 files changed, 12 insertions, 1 deletions
diff --git a/xmake/scripts/base/makefile.lua b/xmake/scripts/base/makefile.lua
index 522e62bad..9dbf1ae35 100644
--- a/xmake/scripts/base/makefile.lua
+++ b/xmake/scripts/base/makefile.lua
@@ -343,6 +343,17 @@ function makefile._make_targets(file)
return true
end
+-- get the makefile path
+function makefile.path()
+
+ -- get the build directory
+ local buildir = config.get("buildir")
+ assert(buildir)
+
+ -- get it
+ return path.translate(buildir .. "/makefile")
+end
+
-- make makefile in the build directory
function makefile.make()
@@ -361,7 +372,7 @@ function makefile.make()
assert(logfile)
-- open the makefile
- local path = buildir .. "/makefile"
+ local path = makefile.path()
local file = io.openmk(path)
if not file then
-- error