GNU Make项目管理(第三版)

(美)Robert Mecklenburg

出版时间

2006-07-01

ISBN

9787564103521

评分

★★★★★
书籍介绍
这不是一本适合放在桌边随时翻阅的入门书,而是一部值得有经验的开发者反复啃读的参考专著。读者最真实的反馈高度一致:它“不适合入门”,甚至“看了一遍还是云里雾里”,翻译水平也常遭诟病。但正因如此,它的价值反而清晰——真正适合的是已经会用 makefile、却想搞清其内部机理的中级开发者。书中对自动变量($@、$<、$?、$^ 等)的逐一拆解、对 phony 目标与时间戳机制的深入剖析,正是许多官方文档一笔带过的内容。它不追求“好读”,而追求“讲透”,属于那种必须仔细研读、用当手册查的书。若你正被复杂的构建系统困扰,且具备一定的 Linux 与 shell 基础,它会是你值得投入的一本。
作者简介
Robert Mecklenburg 在1977年还是学生的时候就开始使用Unix了,他是一位有23年经验的专业程序设计师。他的项目经验始于1982年在NASA使用Unix Version 7作为开发环境。1991年,Robert于犹他州州立大学取得计算机科学博士学位。之后,他在许多领域工作过,范围从机械计算机辅助设计到生物信息学,这让他能够将C++、Java和Lisp的广泛经验应用在。make项目管理的许多问题上。
AI导读
核心看点
  • 深入解析GNU Make强大功能
  • 掌握多目录与跨平台编译技巧
  • 系统梳理Makefile编写规范
读者共识
  • 内容全面但晦涩难懂
  • 适合作为工具书查阅
  • 中译本质量评价一般
精彩摘录
  • "The first rule seen by make is used as default rule. A rule consists of three parts: the target, the prerequisites, and the commands to perform. The target is the file or thing that must be made. The prerequisites or dependents are those files that must exist before the target can be successfully cr"
  • "... the order in which commands are executed by make are nearly the opposite to the order they occur in the makefile. This top-down style is common in makefiles. Usually the most general form of target is specified first in the makefile and the details are left for later."
  • "... a standard first target in many makefiles is called all. Targets that do not represent files are known as phony targets. Another standard phony target is clean. clean: rm -f *.o lexer.c make cannot distinguish between a file target and phony target."
  • "$@ The filename representing the target. $% The filename element of an archive member specification. $< The filename of the first prerequisite. $? The names of all prerequisites that are newer than the target, separated by spaces. $^ The filenames of all the prerequisites, separated by spaces. This "
  • "gui.o: CPPFLAGS += -DUSE_NEW_MALLOC=1"
  • "# COMSPEC is defined only on Windows. ifdef COMSPEC PATH_SEP := ; EXE_EXT := .exe else PATH_SEP := : EXE_EXT := endif"
  • "dir Function returns the directory portion of each word in list. source-dir:= $(sort \ $(dir \ $(shell find. -name '*.c')))"
  • "$(player) $(libraries) : $(MAKE) --directory=$@"
用户评论
写得不错,要是英文更好!
用的时候当手册查就可以了.
虽然记住的很少,但是至少明白了,如果你愿意,可以拿make script当编程语言来用
一本让我了解了make的书,一本让我对make产生了深深厌恶的书。
工具书,大致翻了翻
不知所云
涵盖了基本语法、各种规则和机制、调试、性能提高、工程实践等方面内容,很全面了,不错的书
如何dushu
真的不适合新手入门,另外中译本翻译水平也确实有问题。建议想尽快上手的去阅读陈皓写的《跟我一起写Makefile》。
下载
收藏