color-compile项目
项目地址:https://github.com/chinaran/color-compile/
下载源码
git clone https://github.com/chinaran/color-compile/
- 1
- 1
开始编译安装
cd color-compile
/make
sudo /make install
- 1
- 2
- 3
- 1
- 2
- 3
其实安装方法可以参见README.md
https://github.com/chinaran/color-compile/blob/master/README.md
测试
cd color-compile
make TEST
- 1
- 2
- 1
- 2
卸载
Makefile中没有make uninstall命令
查看Makefile中install命令的执行操作,我们可以猜测出卸载的途径
install:
cp color_compile /usr/local/bin/
cp out_color_info /usr/local/bin/
echo 'alias gcc="color_compile gcc"' >> $(ALIAS_FILE)
echo 'alias g++="color_compile g++"' >> $(ALIAS_FILE)
echo 'alias make="color_compile make"' >> $(ALIAS_FILE)
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 1
- 2
- 3
- 4
- 5
- 6
- 7
卸载命令
删掉或者注释掉$(ALIAS_FILE)即~/.bashrc中以下几行
alias gcc="color_compile gcc"
alias g++="color_compile g++"
alias make="color_compile make"
- 1
- 2
- 3
- 1
- 2
- 3
彻底卸载可以删除二进制文件
rm -rf /usr/local/bin/color_compile
rm -rf /usr/local/bin/out_color_info
转载:http://blog.csdn.net/gatieme/article/details/44956967