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
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 clean 删除大多数的编译生成文件, 但是会保留内核的配置文件.config, 还有足够的编译支持来建立扩展模块
make mrproper 删除所有的编译生成文件, 还有内核配置文件, 再加上各种备份文件
make distclean mrproper 删除的文件, 加上编辑备份文件和一些补丁文件。
---------------------
本文详细解析了内核源码编译后的清理命令:make clean、make mrproper及make distclean的区别。make clean保留配置文件并清除大部分编译文件;make mrproper彻底清除所有编译文件和配置文件;make distclean更进一步,移除编辑备份和补丁文件。
1万+

被折叠的 条评论
为什么被折叠?



