make clean、 make mrproper、make distclean的区别
来源:互联网 发布:什么叫品牌战略 知乎 编辑:程序博客网 时间:2024/05/16 09:11
http://blog.csdn.net/sidely/article/details/40296745
内核编译时, 到底用make clean, make mrproper还是make distclean
在编译内核时, 被make clean, make mrproer 和 make distclean搞的纠结, 稍微总结一下这三者之间的区别:
解压内核源码包后, 到内核源代码目录树的顶层目录, 执行
# make help
Cleaning targets:
clean - Remove most generated files but keep the config and enough build support to build external modules
mrproper - Remove all generated files + config + various backup files
distclean - mrproper + remove editor backup and patch files
make help的结果:
make clean 删除大多数的编译生成文件, 但是会保留内核的配置文件.config, 还有足够的编译支持来建立扩展模块
make mrproper 删除所有的编译生成文件, 还有内核配置文件, 再加上各种备份文件
make distclean mrproper删除的文件, 加上编辑备份文件和一些补丁文件。
clean: archclean $(clean-dirs)
$(call cmd,rmdirs)
$(call cmd,rmfiles)
@find . $(RCS_FIND_IGNORE) \
-type f -print | xargs rm -f
mrproper: clean archmrproper $(mrproper-dirs)
$(call cmd,rmdirs)
$(call cmd,rmfiles)
distclean: mrproper
@find $(srctree) $(RCS_FIND_IGNORE) \
-name '*.orig' -o -name '*.rej' -o -name '*~' \
-o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
-o -name '.*.rej' -o -size 0 \
-o -name '*%' -o -name '.*.cmd' -o -name 'core' \
-type f -print | xargs rm -f
也就是说, 执行make mrproper, 会先执行make clean, 执行make distclean之前, 会先执行make mrproper。
其实, 对于一个刚刚从kernel.org上下载的内核源码包, 可以不用执行make clean/make mrproper/make distclean, 因为源码包的状态本身就是clean的。
阅读全文
0 0
- make clean、 make mrproper、make distclean的区别
- make clean、 make mrproper、make distclean的区别
- make clean、 make mrproper、make distclean的区别
- make clean、 make mrproper、make distclean的区别
- make clean、 make mrproper、make distclean的区别
- make clean、 make mrproper、make distclean的区别
- make clean、 make mrproper、make distclean的区别
- make clean、 make mrproper、make distclean的区别 .
- make clean、 make mrproper、make distclean的区别
- make clean,mrproper,distclean
- make clean,mrproper,distclean
- make clean、 make mrproper、make distclean
- make clean, make mrproper 还是 make distclean
- make clean, make mrproper, make distclean 理解
- make distclean和make clean的区别
- make clean与make distclean的区别
- make clean与make distclean的区别
- make clean与make distclean的区别
- 软件安装
- Matlab中二维插值interp2函数的使用
- 模拟测试(vj2)
- [bzoj 2438][中山市选2011]杀人游戏 概率+tarjan
- 网络流汇总,可以用的模板
- make clean、 make mrproper、make distclean的区别
- 模拟测试(vj3)
- 矩阵快速幂模板及其应用(洛谷3390)(洛谷1962)
- 台湾大学林轩田机器学习技法课程学习笔记11 -- Gradient Boosted Decision Tree
- 单调队列模板(poj2823)
- 斜率优化简单的模板(HDU3507)
- 模拟测试(vj4)
- 算法导论3.2练习题
- NYOJ236 贪心算法