make clean、make mrproer 以及make distclean的区别
来源:互联网 发布:java源程序的扩展名是 编辑:程序博客网 时间:2024/04/30 14:34
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 < make mrproper < make distclean, 查看源码目录树的顶层目录下的Makefile求证, 可以发现:
clean: archclean $(clean-dirs)
$(call cmd,rmdirs)
$(call cmd,rmfiles)
@find . $(RCS_FIND_IGNORE) \
\( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \
-o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \
-o -name '*.symtypes' -o -name 'modules.order' \
-o -name 'Module.markers' \) \
-type f -print | xargs rm -f
clean: archclean $(clean-dirs)
$(call cmd,rmdirs)
$(call cmd,rmfiles)
@find . $(RCS_FIND_IGNORE) \
\( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \
-o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \
-o -name '*.symtypes' -o -name 'modules.order' \
-o -name 'Module.markers' \) \
-type f -print | xargs rm -f
mrproper: clean archmrproper $(mrproper-dirs)
$(call cmd,rmdirs)
$(call cmd,rmfiles)
$(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
@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。
再回到make help的结果:
make clean 删除大多数的编译生成文件, 但是会保留内核的配置文件.config, 还有足够的编译支持来建立扩展模块
make mrproper 删除所有的编译生成文件, 还有内核配置文件, 再加上各种备份文件
make distclean mrproper 删除的文件, 加上编辑备份文件和一些补丁文件。
make clean 删除大多数的编译生成文件, 但是会保留内核的配置文件.config, 还有足够的编译支持来建立扩展模块
make mrproper 删除所有的编译生成文件, 还有内核配置文件, 再加上各种备份文件
make distclean mrproper 删除的文件, 加上编辑备份文件和一些补丁文件。
- make clean、make mrproer 以及make distclean的区别
- make clean、make mrproer 以及make distclean的区别
- make clean、make mrproer 以及make distclean的区别
- make clean、make mrproer 以及make distclean的区别
- make clean、make mrproer 以及make distclean的区别
- make clean、make mrproer 以及make distclean的区别
- make clean、make mrproer 以及make distclean的区别
- make clean、make mrproer 以及make distclean的区别
- make clean, make mrproer 和 make distclean的区别
- make distclean和make clean的区别
- make clean与make distclean的区别
- make clean与make distclean的区别
- make clean与make distclean的区别
- make clean与make distclean的区别
- make clean与make distclean的区别
- make clean与make distclean的区别
- make clean 与 make distclean 的区别
- make clean与make distclean的区别
- 编程要从大体入手从细节结尾
- 古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,问每个月的兔子总数为多少?
- 框架和平台的区别以及重要性
- 关于android的一些感想
- 正则习点 --- 08
- make clean、make mrproer 以及make distclean的区别
- 获得Controller 的Map ContextLoaderListener和ContextLoaderServlet
- 判断m-n之间有多少个素数,并输出所有素数。
- C++不定参数综合实例
- vim插件介绍
- 关于Android横竖屏切换的解决方法
- 配置基本
- 指向子类实例的父类指针 http://hi.baidu.com/qinlikang/blog/item/b6476bf52223972cbd310931.html
- 打印出所有的 "水仙花数 ",所谓 "水仙花数 "是指一个三位数,其各位数字立方和等于该数本身。例如:153是一个 "水仙花数 ",因为153=1的三次方+5的三次方+3的三次方。