Managing Projects with GNU Make

书名:Managing Projects with GNU Make
作者:RobertMecklenburg
译者:
ISBN:9780596006105
出版社:O'ReillyMedia
出版时间:2004-11-26
格式:epub/mobi/azw3/pdf
页数:302
豆瓣评分: 8.5

书籍简介:

The utility simply known as "make" is one of the most enduring features of both Unix and other operating systems. First invented in the 1970s, "make" still turns up to this day as the central engine in most programming projects; it even builds the Linux kernel. In the third edition of the classic "Managing Projects with GNU make," readers will learn why this utility continues to hold its top position in project build software, despite many younger competitors. The premise behind "make" is simple: after you change source files and want to rebuild your program or other output files, "make" checks timestamps to see what has changed and rebuilds just what you need, without wasting time rebuilding other files. But on top of this simple principle, "make" layers a rich collection of options that lets you manipulate multiple directories, build different versions of programs for different platforms, and customize your builds in other ways. This edition focuses on the GNU version of "make," which has deservedly become the industry standard. GNU make contains powerful extensions that are explored in this book. It is also popular because it is free software and provides a version for almost every platform, including a version for Microsoft Windows as part of the free Cygwin project. "Managing Projects with GNU make," 3rd Edition provides guidelines on meeting the needs of large, modern projects. Also added are a number of interesting advanced topics such as portability, parallelism, and use with Java. Robert Mecklenburg, author of the third edition, has used "make" for decades with a variety of platforms and languages. In this book he zealously lays forth how to get your builds to be as efficient as possible, reduce maintenance, avoid errors, and thoroughly understand what "make" is doing. Chapters on C++ and Java provide makefile entries optimized for projects in those languages. The author even includes a discussion of the makefile used to build the book.

作者简介:

Robert Mecklenburg began using Unix as a student in 1977 and has been programming professionally for 23 years. His make experience started in 1982 at NASA with Unix version 7. Robert received his Ph.D. in Computer Science from the University of Utah in 1991. Since then he has worked in many fields ranging from mechanical CAD to bioinformatics, and brings his extensive experience in C++, Java and Lisp to bear on the problems of project management with make.

书友短评:

@ 马鸣 作者主要以没有 IDE 的时候如何编译、链接、生成可执行文件的角度来介绍 Make。但 Make 还能做更多的事情,比如构建开发环境。想读这本书需要一些前置知识,至少要了解 Bash。如果能了解一些命令行工具,如 awk、sed 则会更舒服点。书中的例子可以在这里找到 https://resources.oreilly.com/examples/9780596006105/tree/master

书籍目录

  • 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 created. And the commands are those shell commands that will create the target from the prerequisites.foo.o: foo.c foo.hgcc -c foo.c
    —— 引自第4页
  • … 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.
    —— 引自第6页
  • 添加微信公众号:好书天下获取

    添加微信公众号:“好书天下”获取书籍好书天下 » Managing Projects with GNU Make
    分享到: 更多 (0)

    评论 抢沙发

    评论前必须登录!

     

    添加微信公众号:“好书天下”获取书籍

    好书天下