diff options
| -rw-r--r-- | xmake/actions/install/xmake.lua | 14 | ||||
| -rw-r--r-- | xmake/actions/uninstall/xmake.lua | 15 |
2 files changed, 18 insertions, 11 deletions
diff --git a/xmake/actions/install/xmake.lua b/xmake/actions/install/xmake.lua index e3bd69312..e92e5f1c2 100644 --- a/xmake/actions/install/xmake.lua +++ b/xmake/actions/install/xmake.lua @@ -48,16 +48,16 @@ task("install") {'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.", + "or $ DESTDIR=/usr/local xmake install", + "or $ 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." } + "or $ 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." } } } diff --git a/xmake/actions/uninstall/xmake.lua b/xmake/actions/uninstall/xmake.lua index 400e7ffa5..68deba056 100644 --- a/xmake/actions/uninstall/xmake.lua +++ b/xmake/actions/uninstall/xmake.lua @@ -45,10 +45,17 @@ task("uninstall") -- options , options = { - {nil, "installdir", "kv", nil, "Set the install directory." } - - , {} - , {nil, "target", "v", nil, "Uninstall the given target." } + {nil, "installdir", "kv", nil, "Set the install directory.", + ".e.g", + " $ xmake uninstall -o /usr/local", + "or $ DESTDIR=/usr/local xmake uninstall", + "or $ INSTALLDIR=/usr/local xmake uninstall" } + , {'p', "prefix", "kv", nil, "Set the prefix directory.", + ".e.g", + " $ xmake uninstall --prefix=local", + "or $ PREFIX=local xmake uninstall" } + , { } + , {nil, "target", "v", nil, "Uninstall the given target." } } } |
