摘要: http://www.groad.net/bbs/simple/?f104.htmlif 函数if 函数的语法有两种形式:(1) $(if , )(2) $(if , , )也就是说,如果 为真,那么就采用 ,否则就采用 ;如果为假且为第一种形式,那么啥都不做。示例代码:VERSION = 1SUBLEVEL = 2PATCHLEVEL = 6OBJTREE := $(if $(VERSION),$(SUBLEVEL),$(PATCHLEVEL))all: @echo "$(OBJTREE)"输出:$ make 2如果改变上面的代码,不赋值给 VERSION,那么 make 阅读全文
posted @ 2013-09-05 21:30 baihuahua 阅读(500) 评论(0) 推荐(0) 编辑
摘要: http://www.groad.net/bbs/simple/?f104.htm$(Q) 变量内核 Makefile 文件 238 行到 259 行的注释中知道,$(Q) 变量的作用是决定是否在执行命令时输出详细的命令信息。底下对其有定义:ifeq ($(KBUILD_VERBOSE),1) quiet = Q = else quiet=quiet_ Q = @ endif定义的意思是,如果 KBUILD_VERBOSE 为 1,则 quiet 和 Q 为空,即执行命令时会输出命令执行的详细信息;否则 quiet 为 quiet_ ,Q 为 @ 。在 Make... 阅读全文
posted @ 2013-09-05 17:32 baihuahua 阅读(1588) 评论(0) 推荐(0) 编辑
摘要: 英文原文:http://www.nvie.com/posts/a-successful-git-branching-model/原文作者:Vincent Driessen本文经Linux大棚博主总结精简而成。1、GIT,在技术层面上,绝对是一个无中心的分布式版本控制系统,但在管理层面上,我建议你保持一个中心版本库。2、我建议,一个中心版本库(我们叫它origin)至少包括两个分支,即“主分支(master)”和“开发分支(develop)”。3、要确保:团队成员从主分支(master)获得的都是处于可发布状态的代码,而从开发分支(develop)应该总能够获得最新开发进展的代码。4、在一个团队 阅读全文
posted @ 2013-09-05 13:37 baihuahua 阅读(1348) 评论(1) 推荐(1) 编辑
摘要: Linux下面去编译项目之前,一般常会用make mrproper去先删除之前编译所生成的文件和配置文件,备份文件等,其中,mrproper和distclean,clean之间的区别,Linux内核源码根目录下面的makefile中,有很清晰的解释:help: @echo 'Cleaning targets:' @echo ' clean - Remove most generated files but keep the config and' @echo ' enough build support to build external ... 阅读全文
posted @ 2013-09-05 08:20 baihuahua 阅读(668) 评论(0) 推荐(0) 编辑
摘要: http://en.wikipedia.org/wiki/Ingo_Molnárhttp://zh.wikipedia.org/wiki/英格·蒙內Ingo Molnár Ingo Molnár, currently employed by Red Hat, is a Hungarian Linux hacker. He is best known for his contributions to the operating system in terms of security and performance.Work Some of his addi 阅读全文
posted @ 2013-09-05 08:17 baihuahua 阅读(851) 评论(0) 推荐(0) 编辑