Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.
Managing Projects with GNU Make and over 300,000 other books are available for Amazon Kindle – Amazon’s new wireless reading device. Learn more

 

or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
46 used & new from $11.50

Have one to sell? Sell yours here
 
   
Managing Projects with GNU Make (Nutshell Handbooks)
 
 
Start reading Managing Projects with GNU Make on your Kindle in under a minute.

Don’t have a Kindle? Get yours here.
 
  

Managing Projects with GNU Make (Nutshell Handbooks) (Paperback)

by Robert Mecklenburg (Author)
Key Phrases: example makefiles, common error messages, managing libraries, The Book Makefile, Built-in Functions, Parsing Commands (more...)
3.6 out of 5 stars See all reviews (12 customer reviews)

List Price: $29.95
Price: $19.77 & eligible for FREE Super Saver Shipping on orders over $25. Details
You Save: $10.18 (34%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Want it delivered Tuesday, July 21? Choose One-Day Shipping at checkout. Details
27 new from $13.99 19 used from $11.50
Also Available in: List Price: Our Price: Other Offers:
Kindle Edition (Kindle Book) $14.39
Paperback Order it used!
Like this book? Find similar titles from O'Reilly and Partners in our O'Reilly Bookstore.

Best Value

Buy grep Pocket Reference (Pocket Reference (O'Reilly)) and get Managing Projects with GNU Make (Nutshell Handbooks) at an additional 5% off Amazon.com's everyday low price.

grep Pocket Reference (Pocket Reference (O'Reilly)) + Managing Projects with GNU Make (Nutshell Handbooks)
Buy Together Today: $29.17

Show availability and shipping details

  • grep Pocket Reference (Pocket Reference (O'Reilly))

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details

  • This item: Managing Projects with GNU Make (Nutshell Handbooks)

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details


Customers Who Bought This Item Also Bought

The Definitive Guide to GCC, Second Edition

The Definitive Guide to GCC, Second Edition

by William von Hagen
3.9 out of 5 stars (9)  $44.99
An Introduction to GCC

An Introduction to GCC

by Brian J. Gough
4.6 out of 5 stars (12)  $15.56
Learning the bash Shell: Unix Shell Programming (In a Nutshell (O'Reilly))

Learning the bash Shell: Unix Shell Programming (In a Nutshell (O'Reilly))

by Cameron Newham
4.1 out of 5 stars (33)  $23.07
Classic Shell Scripting

Classic Shell Scripting

by Arnold Robbins
4.6 out of 5 stars (10)  $23.07
Version Control with Subversion

Version Control with Subversion

by C Pilato
4.7 out of 5 stars (23)  $26.39
Explore similar items

Editorial Reviews

Product Description
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.

About the Author
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.


Product Details

  • Paperback: 300 pages
  • Publisher: O'Reilly Media, Inc.; 3 edition (May 11, 2009)
  • Language: English
  • ISBN-10: 0596006101
  • ISBN-13: 978-0596006105
  • Product Dimensions: 9.1 x 6.9 x 0.9 inches
  • Shipping Weight: 1.1 pounds (View shipping rates and policies)
  • Average Customer Review: 3.6 out of 5 stars See all reviews (12 customer reviews)
  • Amazon.com Sales Rank: #41,848 in Books (See Bestsellers in Books)

    Popular in these categories: (What's this?)

    #9 in  Books > Computers & Internet > Software > Business > Utilities
    #35 in  Books > Computers & Internet > Project Management > PMP Exam
    #49 in  Books > Computers & Internet > Operating Systems > Unix

Inside This Book (learn more)

Citations (learn more)
1 book cites this book:

What Do Customers Ultimately Buy After Viewing This Item?

Managing Projects with GNU Make (Nutshell Handbooks)
85% buy the item featured on this page:
Managing Projects with GNU Make (Nutshell Handbooks) 3.6 out of 5 stars (12)
$19.77
The Definitive Guide to GCC, Second Edition
4% buy
The Definitive Guide to GCC, Second Edition 3.9 out of 5 stars (9)
$44.99
GNU Autoconf, Automake, and Libtool (Circle)
4% buy
GNU Autoconf, Automake, and Libtool (Circle) 3.4 out of 5 stars (14)
$33.11
The Art of Debugging with GDB, DDD, and Eclipse
4% buy
The Art of Debugging with GDB, DDD, and Eclipse 5.0 out of 5 stars (3)
$34.88

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(4)
(2)
(2)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

 

Customer Reviews

12 Reviews
5 star:
 (1)
4 star:
 (5)
3 star:
 (6)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
3.6 out of 5 stars (12 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
53 of 53 people found the following review helpful:
4.0 out of 5 stars A much needed, and enjoyable, book about GNU Make, May 16, 2005
I write a lot of Makefiles. In fact, I write a lot of Makefiles using
GNU Make and finally there's a book to complement the Free Software
Foundation's excellent GNU Make user guide. Also, finally, O'Reilly
has updated what must have been the worst book in their entire line
up: "Managing Projects with make"

Robert Mecklenburg's "Managing Project with GNU Make" is a must have
book if you end up writing or maintaining GNU Make Makefiles with more
than 100 lines in them. You don't need it if all your Makefiles are
created using ./configure, but every serious Makefile hacker should
read this book.

That's not to say that the book is perfect. Far from it. I was
annoyed while reading the book by the author's frequent, annoying
small errors (e.g. on p. 58 the author states that CURDIR contains the
argument of --include-dir when in fact it contains the full path of
the directory where GNU Make is looking for Makefiles) and over use of
the $(eval) (more on $(eval) below). In fact, the number of errors in
the book were surprising for an O'Reilly tome and it looks like the
edition could use a good proof-reading. I've sent in a detailed list
to the O'Reilly folks but nothing appears on their Errata web site
yet.

The section that describes the new $(eval) and $(value) functions
available since GNU Make 3.80 is excellent (pp. 82-86). And the book
contains a good discussion of the problems inherent in using recursive
make (pp. 108-116) and how to implement a non-recursive make
(pp. 117-123). The book is worth its cover price just for these three
sections.

Where I think the book really goes off track is in trying to shoehorn
too many things into GNU Make. Specifically, the author talks quite a
bit about ANT and spends an entire chapter showing how to replace ANT
with GNU Make. I found some of the things he thinks are wrong with
ANT to be silly: for example, "The Ant <mkdir> task does not invoke
the underlying mkdir program for your system. Instead, it executes
the Java mkdir() method of the java.io.File class. This may or may
not be what you expect." Sure, if you are a GNU Make user you'd
expect that mkdir is mkdir the command; Java programms a probably
quite familiar with java.io.File and are likely not to be confused. I
think the book would have been better without this chapter.

The section on parallel and distributed Make is really light.
Although this section describes the issues associated with trying to
parallelize a build, it wold have been nice to have a description of
distcc.

There are only two books on GNU Make worth reading: this one and the
FSF's GNU Make manual. As I was reading Robert Mecklenburg's book I
couldn't help finding myself comparing it with the FSF manual (which
is the same as the info files installed with GNU Make).

Firstly, this isn't a good book to learn GNU Make from. Although Part
I of the book explains the basics of GNU Make with many examples, the
book does not provide a complete reference to GNU Make's language (for
example, Appendix A's list of command-line options is incomplete), and
has odd digressions (the section describing how += works (pp. 44-45)
makes it sound much more complex than it is) and ommissions (the
section on "Target- and Pattern-Specific Variables" (pp. 50-51) makes
no mention of pattern-specific variables at all).

Secondly, the author lurves the $(eval) function added in GNU Make
3.80. There are three problems with this: GNU Make 3.79.1 is commonly
seen in practice and doesn't contain $(eval), the implementation of
$(eval) in 3.80 has some bugs in it and the author uses $(eval) too
much, using it when it isn't needed. This hammer to crack a nut use
of $(eval) is annoying because it obscures simpler ways of writing
Makefiles.

If you get this book and know a thing or two about Make jump directly
to Part II and read about benchmarking of Make, the really useful
debugging ideas and recursive/non-recursive make. Skip back to Part I
when you've got some time on your hands and need to have a fun read;
you'll know most of the material but there are gems worth finding.
When you are done with that have a good laugh about the "extreme Make"
in Appendix B. Skip over the description of the Linux Kernel
Makefile: it seems like it might be interesting, but isn't.

If you can only buy one book about GNU Make, then buy the Free
Software Foundation's GNU Make user guide. You'll be supporting the
people who actually created GNU Make, and you'll get a complete
reference to it. If you've already got the FSF book, then get Robert
Mecklenburg's excellent "advanced user's guide".
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
6 of 7 people found the following review helpful:
3.0 out of 5 stars Good as a basis, but there are much more tricks!, August 9, 2005
In general I like the book and the way it is written. It gives a good introduction into all the aspects of make.
However I wonder how many large projects have been handled by the guy and how much he knows about some stuff. Two examples from the top of my head. He know no usage for the '::' operator, while for example building a clean target from different areas of the makefile is a great example!
Secondly he describes a while loop for doing a recursive make that does not stop when a sub-make fails, while adding a simple "set -e" would do that perfectly fine!
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
6 of 7 people found the following review helpful:
5.0 out of 5 stars At last! , November 20, 2004
By Matthew B. Doar (San Jose, CA USA) - See all my reviews
(REAL NAME)   
I'm very glad to see this book finally get updated (I read the Safari version online). It contains some very useful sections on recursive vs non-recursive make, large projects, and building object files outside the source tree. There are lots of clear examples and recipes to use. There's also an article from this book at O'Reilly OnLamp.

The only thing missing, I think, is a good discussion of how to use the GNU autotools, which is what many open source projects ship. Still, they do have a book to themselves (the goat book), though it's a bit outdated now.

If you are already maintaining a project with make, I recommend you buy this book.

~Matt

Disclosure: I'm writing a book (also for O'Reilly) that includes a chapter on build tools such as make, but I have no previous connection with this edition of the book or the author.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
Ad
 
Most Recent Customer Reviews

3.0 out of 5 stars Most information is useful. Slightly disorganized, which causes a very slow read.
Overall the book presents all the information you need to start using make - which is a lot of information. Read more
Published 1 day ago by Aaron Smith

3.0 out of 5 stars Does what it should do
I've used make and makefiles for many years. In my current product development there was suddenly a need for a little more than the standard make knowledge. Read more
Published on July 1, 2007 by Bas Vodde

3.0 out of 5 stars Well organized, competent but uninspired and biased
Mr. Mecklernburg is definitely an expert in GNU Make and the book shows it. The information it contains is well organized and the author doesn't spend precious time on... Read more
Published on June 24, 2007 by FILIP Marius

4.0 out of 5 stars Excellent resource for programmers
Make has been an icon in the GNU / Linux world for over thirty years now, and continues to be one of the most used utilities to ever be released on the platform. Read more
Published on June 15, 2007 by B. Hilburn

4.0 out of 5 stars Nice book; available on the net for free
I've just begun reading the book and it's a nice book on GNU's make. As already mentioned, it is not a handbook but rather more like a discussion of how to best use make in your... Read more
Published on June 2, 2007 by Elizabeth B.

4.0 out of 5 stars Good Overview
This book is a good place to start for learning how to manage large projects with GNU Make. It covers the basics and then moves on to specialized topics including writing... Read more
Published on March 14, 2007 by Joe Lon

3.0 out of 5 stars Managing Projects with GNU Make
I believe this book to be a thin, enough to get you started, overview. Worth it if you are just getting started but not a good resource for the veteran
Published on January 11, 2007 by Daren Trowbridge

3.0 out of 5 stars OK for some needs
First, this isn't a handbook for GNU make. As the title says, it aims at the developer who has the make reference material, and is trying hack a path through the dense thicket of... Read more
Published on July 12, 2006 by wiredweird

4.0 out of 5 stars This book was a lifesaver
I'm taking an operating systems class. As part of that class, we had to modify an existing operating system. Read more
Published on April 27, 2005 by Stephen Rowe

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]


Active discussions in related forums
   


Product Information from the Amapedia Community

Beta (What's this?)



Look for Similar Items by Category


Up to 50% Off Hot Brands in Skin Care

Skin Care Sale
Get favorite name brands in skin care for face, body, and sun care, now up to 50% off at the skin care sale, only from Amazon Beauty.

Shop all skin care

 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

Summer Reading for Kids & Teens

Summer Reading for Kids and Teens
Discover everything from beach reads and board books to teen romance and action-adventure series in Summer Reading for Kids & Teens. And, check off the kids' required reading lists in our Summer School Reading Store.
 

Best Books

Best of the Month
See our editors' picks and more of the best new books on our Best of the Month page.
 
Ad

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Free
Free by Chris Anderson
Paranoia
Paranoia by Joseph Finder
Glenn Beck's Common Sense
Glenn Beck's Common Sense

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates