summaryrefslogtreecommitdiff
path: root/xmake/actions/clean/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-03-24 13:59:41 +0800
committerruki <[email protected]>2016-03-24 13:59:41 +0800
commitdf4bd403becbdd74b13cf92bd906d0d1caa9908c (patch)
treeefde2f9dd25024013c9dee86f3eb948a399d478f /xmake/actions/clean/xmake.lua
parent9612b87afb5e86ca62457c4deacccaa3d0696373 (diff)
check xmake.lua
Diffstat (limited to 'xmake/actions/clean/xmake.lua')
-rwxr-xr-xxmake/actions/clean/xmake.lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/xmake/actions/clean/xmake.lua b/xmake/actions/clean/xmake.lua
new file mode 100755
index 000000000..41ef2fbc0
--- /dev/null
+++ b/xmake/actions/clean/xmake.lua
@@ -0,0 +1,32 @@
+-- define task
+task("clean")
+
+ -- set category
+ set_task_category("action")
+
+ -- on run
+ on_task_run("main")
+
+ -- set menu
+ set_task_menu({
+ -- usage
+ usage = "xmake clean|c [options] [target]"
+
+ -- description
+ , description = "Remove all binary and temporary files."
+
+ -- xmake c
+ , shortname = 'c'
+
+ -- options
+ , options =
+ {
+ {'a', "all", "k", nil, "Clean all auto-generated files by xmake." }
+
+ , {}
+ , {nil, "target", "v", "all", "Clean for the given target." }
+ }
+ })
+
+
+