summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/rule.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-12-06 00:38:11 +0800
committerruki <[email protected]>2015-12-06 00:38:11 +0800
commitb7a0ed4cd24fbd421715dad7376ae691871ca126 (patch)
treeade15aaefe06cdfad6ee4fb81289c0b0e21f278d /xmake/scripts/base/rule.lua
parent55baf72274c1aeefceb125f49a4da77e1d49bf40 (diff)
auto configure if makefile not exists
Diffstat (limited to 'xmake/scripts/base/rule.lua')
-rw-r--r--xmake/scripts/base/rule.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/xmake/scripts/base/rule.lua b/xmake/scripts/base/rule.lua
index e165c6533..e6e724cff 100644
--- a/xmake/scripts/base/rule.lua
+++ b/xmake/scripts/base/rule.lua
@@ -55,6 +55,17 @@ function rule.filename(name, kind)
return format[1] .. name .. format[2]
end
+-- get the makefile path
+function rule.makefile()
+
+ -- get the build directory
+ local buildir = config.get("buildir")
+ assert(buildir)
+
+ -- get it
+ return path.translate(buildir .. "/makefile")
+end
+
-- get configure file for the given target
function rule.config_h(target)