1 Star 0 Fork 74

爱吃香菜/tone-cli

forked from anolis/tone-cli 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.26 KB
一键复制 编辑 原始数据 按行查看 历史
Aviel 提交于 2023-04-03 11:36 . update Makefile
install:
result=$(uname -a | grep "kylin");\
if [ x"${result}" != x"" ];then \
if [ -f /usr/bin/python ];then \
mkdir /usr/bin/python-backup/;\
mv -n /usr/bin/python /usr/bin/python-backup/python;\
fi;\
fi;\
if [ -h /usr/local/bin/tone ]; then \
rm -rf /usr/local/bin/tone; \
fi;\
ln -s `pwd`/tone /usr/local/bin/tone;\
if [ ! -f /usr/bin/python ]; then \
if [ -f /usr/bin/python3 ]; then \
ln -s /usr/bin/python3 /usr/bin/python; \
elif [ -f /usr/bin/python2 ]; then \
ln -s /usr/bin/python2 /usr/bin/python; \
else \
echo "Can Not find python in /usr/bin"; \
exit 1; \
fi; \
fi
./bin/install_tone_deps.py
#create link of /usr/bin/python again, to workaround issue:
#link of python would be deleted by python-devel installation
if [ ! -f /usr/bin/python ]; then \
if [ -f /usr/bin/python3 ]; then \
ln -s /usr/bin/python3 /usr/bin/python; \
elif [ -f /usr/bin/python2 ]; then \
ln -s /usr/bin/python2 /usr/bin/python; \
else \
echo "Can Not find python in /usr/bin"; \
exit 1; \
fi; \
fi
echo "Done!"
clean:
find . -type f -name "*.pyc" | xargs rm -f
[ ! -e "./build" ] || rm -rf ./build
[ ! -e "./cache" ] || rm -rf ./cache
[ ! -e "./run" ] || rm -rf ./run
[ ! -e "./result" ] || rm -rf ./result
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/anolislhy/tone-cli.git
git@gitee.com:anolislhy/tone-cli.git
anolislhy
tone-cli
tone-cli
master

搜索帮助