From 55baf72274c1aeefceb125f49a4da77e1d49bf40 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 5 Dec 2015 23:29:53 +0800 Subject: add warning for matching files --- xmake/scripts/base/makefile.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'xmake/scripts/base/makefile.lua') 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 -- cgit v1.3.1