summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/make
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-22 23:20:19 +0800
committerruki <[email protected]>2020-02-22 23:20:19 +0800
commitd7343aea8fdfdba0c71bcdb3441057aefeb64a97 (patch)
tree5de89b0f8bc30e2776c56a41f2d569f55bd96080 /xmake/plugins/project/make
parent4a7f397b9036a3c31cad090732d758794555e40c (diff)
impl generate build.ninja
Diffstat (limited to 'xmake/plugins/project/make')
-rw-r--r--xmake/plugins/project/make/makefile.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/plugins/project/make/makefile.lua b/xmake/plugins/project/make/makefile.lua
index c5b76880a..c2c44508d 100644
--- a/xmake/plugins/project/make/makefile.lua
+++ b/xmake/plugins/project/make/makefile.lua
@@ -320,6 +320,12 @@ end
-- make all
function _make_all(makefile)
+ -- make head
+ makefile:print([[# this is the build file for project %s
+# it is autogenerated by the xmake build system.
+# do not edit by hand.
+]], project.name() or "")
+
-- make variables for ccache
local ccache = find_tool("ccache")
if ccache then