Skip to content

Commit

Permalink
use link on supported os in installation
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihe774 committed May 24, 2017
1 parent 7ee82c2 commit 4fafe79
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,13 @@ install:
@# install the xmake directory
@cp -r xmake/* $(xmake_dir_install)
@# make the xmake loader
ifeq (,$(filter $(PLAT),linux macosx))
@echo '#!/bin/bash' > $(xmake_loader)
@echo 'export XMAKE_PROGRAM_DIR=$(xmake_dir_install)' >> $(xmake_loader)
@echo '$(xmake_core_install) $(verbose) "$$@"' >> $(xmake_loader)
else
@ln -s '$(xmake_core_install)' '$(xmake_loader)'
endif
@# install the xmake loader
@if [ ! -d $(prefix)/bin ]; then mkdir -p $(prefix)/bin; fi
@mv $(xmake_loader) $(xmake_loader_install)
Expand Down

0 comments on commit 4fafe79

Please sign in to comment.