summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorruki <[email protected]>2020-10-29 00:22:46 +0800
committerruki <[email protected]>2020-10-29 00:22:46 +0800
commit8c5cae770fc34871240575ef8029d5f0f8b364da (patch)
tree84f57fa56f1dadfd5a694a38728c60c2146282c4 /makefile
parente5c70421977cdcd866ace7ff8e0884be04a29880 (diff)
improve makefile
Diffstat (limited to 'makefile')
-rw-r--r--makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/makefile b/makefile
index b8b7a449f..a47ca74d3 100644
--- a/makefile
+++ b/makefile
@@ -106,11 +106,10 @@ install:
@# install the xmake directory
@cp -r xmake/* $(xmake_dir_install)
@# install the xmake core file
- @cp $(xmake_core) $(xmake_core_install)
+ @cp -p $(xmake_core) $(xmake_core_install)
@chmod 777 $(xmake_core_install)
@# install the xrepo bin file
- @echo '#!/usr/bin/env sh' > $(xrepo_bin_install)
- @echo '$(xmake_core_install) lua private.xrepo "$$@"' >> $(xrepo_bin_install)
+ @cp -p scripts/xrepo.sh > $(xrepo_bin_install)
@chmod 777 $(xrepo_bin_install)
@# remove xmake.out
@if [ -f "$(TMP_DIR)/xmake.out" ]; then rm $(TMP_DIR)/xmake.out; fi