Chinaunix首页 | 论坛 | 博客
  • 博客访问: 407541
  • 博文数量: 48
  • 博客积分: 764
  • 博客等级: 上士
  • 技术积分: 1133
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-17 13:29
文章分类

全部博文(48)

文章存档

2014年(5)

2013年(34)

2012年(9)

分类: 项目管理

2012-12-11 13:28:23

== Structure ==
The make utility automatically determines which pieces of a large program need to be recompiled,
and issues commands to recompile them.
make 和Makefile的组合,实现了上述功能。
两方面make的运行,以及Makefile的语法。

== Understand ==
-- make --
GNU make does its work in two distinct phases. 
During the first phase it reads all the makefiles, included makefiles, etc. and internalizes all the variables and their values, implicit and explicit rules, and constructs a dependency graph of all the targets and their prerequisites. 

During the second phase, make uses these internal structures to determine what targets will need to be rebuilt and to invoke the rules necessary to do so.
make rad the fist target.

-- makefile --
Rule:
===

Variables
======
simplify the processes of listing prerequisites which maybe apppers multiplace in a makefile.
deffered expansion: used before declare

Directives
======
include
Conditional Parts 
Defining Multi-Line Variables
阅读(1793) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~