summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-25 16:34:07 +0800
committerGitHub <[email protected]>2021-10-25 16:34:07 +0800
commitdf89676a5a905ced4cae2be987742c1d4d91c563 (patch)
tree7540d65aa51ae7010e54f9298e9d2d5fd4774ca9
parente678a046088bf328c0a6ce9b919b5e6a00bbad0c (diff)
Fix install for mac M1
-rw-r--r--makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/makefile b/makefile
index e848a2eda..63d019542 100644
--- a/makefile
+++ b/makefile
@@ -117,7 +117,8 @@ install:
@if [ ! -d $(destdir)/bin ]; then mkdir -p $(destdir)/bin; fi
@# install the xmake directory
@cp -r xmake/* $(xmake_dir_install)
- @# install the xmake core file
+ @# install the xmake core file, @note we need remove old binary first on mac M1, otherwise it will be killed
+ @if [ -f $(xmake_core_install) ]; then rm $(xmake_core_install); fi
@cp -p $(xmake_core) $(xmake_core_install)
@chmod 755 $(xmake_core_install)
@# install the xrepo bin file