1 Star 0 Fork 73

xlp00189949/tone-cli_1

forked from xlp00189949/tone-cli 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
install:
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xlp00189949/tone-cli_1.git
git@gitee.com:xlp00189949/tone-cli_1.git
xlp00189949
tone-cli_1
tone-cli_1
master

搜索帮助