diff options
| author | ruki <[email protected]> | 2021-10-06 00:46:56 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-10-05 22:43:17 +0800 |
| commit | 2c8c745ba9caa35734a3b21fc91c694273a000bd (patch) | |
| tree | 87b4d8361c493b76ea4e11a79773c67568f7eade /xmake/modules/target/action/install/main.lua | |
| parent | 234de16d4ab8358ceac69bc1ff042130b707a3fb (diff) | |
improve install and uninstall
Diffstat (limited to 'xmake/modules/target/action/install/main.lua')
| -rw-r--r-- | xmake/modules/target/action/install/main.lua | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/xmake/modules/target/action/install/main.lua b/xmake/modules/target/action/install/main.lua index 289d258f0..c115e836e 100644 --- a/xmake/modules/target/action/install/main.lua +++ b/xmake/modules/target/action/install/main.lua @@ -20,7 +20,6 @@ -- install files function _install_files(target) - local srcfiles, dstfiles = target:installfiles() if srcfiles and dstfiles then local i = 1 @@ -47,12 +46,10 @@ function main(target, opt) print("installing %s to %s ..", target:name(), installdir) -- call script - if not target:is_phony() then - local install_style = target:is_plat("windows", "mingw") and "windows" or "unix" - local script = import(install_style, {anonymous = true})["install_" .. target:kind()] - if script then - script(target, opt) - end + local install_style = target:is_plat("windows", "mingw") and "windows" or "unix" + local script = import(install_style, {anonymous = true})["install_" .. target:kind()] + if script then + script(target, opt) end -- install other files |
