summaryrefslogtreecommitdiff
path: root/xmake/actions/install/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-09-01 15:58:39 +0800
committerruki <[email protected]>2017-09-01 15:58:39 +0800
commit4c846e018afd9a71694bf3aa3a3ad335149d9fb0 (patch)
tree93c342e082276f08701aa99b8758e644d6a35e5b /xmake/actions/install/xmake.lua
parent0748e1a1f4f96a7606d710147647aca804c1c654 (diff)
improve install and uninstall actions, support DESTDIR and PREFIX env
Diffstat (limited to 'xmake/actions/install/xmake.lua')
-rw-r--r--xmake/actions/install/xmake.lua16
1 files changed, 12 insertions, 4 deletions
diff --git a/xmake/actions/install/xmake.lua b/xmake/actions/install/xmake.lua
index 2d137498d..e3bd69312 100644
--- a/xmake/actions/install/xmake.lua
+++ b/xmake/actions/install/xmake.lua
@@ -45,11 +45,19 @@ task("install")
-- options
, options =
{
- {'o', "installdir", "kv", nil, "Set the install directory." }
- , {'a', "all", "k", nil, "Install all targets." }
+ {'o', "installdir", "kv", nil, "Set the install directory.",
+ ".e.g",
+ " $ xmake install -o /usr/local",
+ "or $ export DESTDIR=/usr/local; xmake install",
+ "or $ export INSTALLDIR=/usr/local; xmake install" }
+ , {'p', "prefix", "kv", nil, "Set the prefix directory.",
+ ".e.g",
+ " $ xmake install --prefix=local",
+ "or $ export PREFIX=local; xmake install" }
+ , {'a', "all", "k", nil, "Install all targets." }
- , {}
- , {nil, "target", "v", nil, "Install the given target." }
+ , { }
+ , {nil, "target", "v", nil, "Install the given target." }
}
}