summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-05-25 13:31:34 +0800
committerruki <[email protected]>2017-05-25 13:31:34 +0800
commit90a8a85a5773c246e4330125a97940310cb63001 (patch)
tree538e46a521ee1e47d6f6f7cbc01a3cdd4208f2e5
parentf39253df1fe3545529c60ae857dad37cea166918 (diff)
improve uninstall for makefile
-rw-r--r--makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/makefile b/makefile
index 723fe67f7..7b8df04dd 100644
--- a/makefile
+++ b/makefile
@@ -75,8 +75,8 @@ install:
uninstall:
@echo uninstalling from $(prefix) ...
- @if [ -f $(prefix)/bin/xmake ]; then rm $(prefix)/bin/xmake; fi
- @if [ -d $(prefix)/share/xmake ]; then rm -rf $(prefix)/share/xmake; fi
+ @if [ -f $(xmake_loader_install) ]; then rm $(xmake_loader_install); fi
+ @if [ -d $(xmake_dir_install) ]; then rm -rf $(xmake_dir_install); fi
@echo ok!
test: