diff options
| author | ruki <[email protected]> | 2020-10-23 23:22:40 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-10-23 23:22:40 +0800 |
| commit | 59abb0aad7f4a123bc6cc9ae7e1ac4d4b7f73e92 (patch) | |
| tree | 22997bd3b22b84c549ce8653ef69f3ed9bed7a44 /makefile | |
| parent | 2bd85f7814e6aa5d23f5e2218c03290d10921dee (diff) | |
install xrepo
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -85,6 +85,12 @@ xmake_core_install :=$(destdir)/bin/xmake.exe else xmake_core_install :=$(destdir)/bin/xmake endif +ifdef iswin +xrepo_name :=xrepo.bat +else +xrepo_name :=xrepo +endif +xrepo_bin_install :=$(destdir)/bin/$(xrepo_name) build: @echo compiling xmake-core ... @@ -107,6 +113,9 @@ install: @# install the xmake core file @cp $(xmake_core) $(xmake_core_install) @chmod 777 $(xmake_core_install) + @# install the xrepo bin file + @cp ./scripts/$(xrepo_name) $(xrepo_bin_install) + @chmod 777 $(xrepo_bin_install) @# remove xmake.out @if [ -f "$(TMP_DIR)/xmake.out" ]; then rm $(TMP_DIR)/xmake.out; fi @# ok @@ -116,6 +125,7 @@ uninstall: @echo uninstalling from $(destdir) ... @if [ -d $(xmake_dir_install) ]; then rm -rf $(xmake_dir_install); fi @if [ -f $(xmake_core_install) ]; then rm $(xmake_core_install); fi + @if [ -f $(xrepo_bin_install) ]; then rm $(xrepo_bin_install); fi @echo ok! test: |
