Managing Projects with GNU Make. 3rd Edition - Helion
ISBN: 978-05-965-5254-1
stron: 302, Format: ebook
Data wydania: 2004-11-19
Księgarnia: Helion
Cena książki: 118,15 zł (poprzednio: 147,69 zł)
Oszczędzasz: 20% (-29,54 zł)
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.
Osoby które kupowały "Managing Projects with GNU Make. 3rd Edition", wybierały także:
- Vim. Kurs video. Zostań administratorem systemów IT 149,00 zł, (67,05 zł -55%)
- Jak Unix tworzył historię 49,00 zł, (24,50 zł -50%)
- Ansible 2 w praktyce. Automatyzacja infrastruktury, zarządzanie konfiguracją i wdrażanie aplikacji 79,00 zł, (39,50 zł -50%)
- Systemy operacyjne. Architektura, funkcjonowanie i projektowanie. Wydanie IX 129,00 zł, (64,50 zł -50%)
- Unix i Linux. Przewodnik administratora system 199,00 zł, (99,50 zł -50%)
Spis treści
Managing Projects with GNU Make. 3rd Edition eBook -- spis treści
- Managing Projects with GNU Make
- Dedication
- A Note Regarding Supplemental Files
- Other resources from OReilly
- Foreword
- Preface
- The Road to the Third Edition
- Whats New in This Edition
- Conventions Used in This Book
- Using Code Examples
- Comments and Questions
- Acknowledgments
- I. Basic Concepts
- 1. How to Write a Simple Makefile
- Targets and Prerequisites
- Dependency Checking
- Minimizing Rebuilds
- Invoking make
- Basic Makefile Syntax
- 2. Rules
- Explicit Rules
- Wildcards
- Phony Targets
- Empty Targets
- Variables
- Automatic Variables
- Finding Files with VPATH and vpath
- Pattern Rules
- The Patterns
- Static Pattern Rules
- Suffix Rules
- The Implicit Rules Database
- Working with Implicit Rules
- Rule Structure
- Implicit Rules for Source Control
- A Simple Help Command
- Special Targets
- Automatic Dependency Generation
- Managing Libraries
- Creating and Updating Libraries
- Using Libraries as Prerequisites
- Double-Colon Rules
- Explicit Rules
- 3. Variables and Macros
- What Variables Are Used For
- Variable Types
- Other Types of Assignment
- Macros
- When Variables Are Expanded
- Target- and Pattern-Specific Variables
- Where Variables Come From
- Conditional and include Processing
- The include Directive
- include and Dependencies
- Standard make Variables
- 4. Functions
- User-Defined Functions
- Built-in Functions
- String Functions
- Important Miscellaneous Functions
- Filename Functions
- Flow Control
- Style note concerning variables and parentheses
- Less Important Miscellaneous Functions
- Advanced User-Defined Functions
- eval and value
- Hooking Functions
- Passing Parameters
- 5. Commands
- Parsing Commands
- Continuing Long Commands
- Command Modifiers
- Errors and Interrupts
- Deleting and preserving target files
- Which Shell to Use
- Empty Commands
- Command Environment
- Evaluating Commands
- Command-Line Limits
- Parsing Commands
- 1. How to Write a Simple Makefile
- II. Advanced and Specialized Topics
- 6. Managing Large Projects
- Recursive make
- Command-Line Options
- Passing Variables
- Error Handling
- Building Other Targets
- Cross-Makefile Dependencies
- Avoiding Duplicate Code
- Nonrecursive make
- Components of Large Systems
- Requirements
- Filesystem Layout
- Automating Builds and Testing
- Recursive make
- 7. Portable Makefiles
- Portability Issues
- Cygwin
- Line Termination
- Filesystem
- Program Conflicts
- Managing Programs and Files
- Source Tree Layout
- Working with Nonportable Tools
- A Standard Shell
- Automake
- 8. C and C++
- Separating Source and Binary
- The Easy Way
- The Hard Way
- Read-Only Source
- Dependency Generation
- Tromeys Way
- makedepend Programs
- Supporting Multiple Binary Trees
- Partial Source Trees
- Reference Builds, Libraries, and Installers
- Separating Source and Binary
- 9. Java
- Alternatives to make
- Ant
- IDEs
- A Generic Java Makefile
- Compiling Java
- The Fast Approach: All-in-One Compile
- Compiling with Dependencies
- Setting CLASSPATH
- Managing Jars
- Reference Trees and Third-Party Jars
- Enterprise JavaBeans
- Alternatives to make
- 10. Improving the Performance of make
- Benchmarking
- Identifying and Handling Bottlenecks
- Simple Variables Versus Recursive
- Disabling @
- Lazy Initialization
- Parallel make
- Distributed make
- 11. Example Makefiles
- The Book Makefile
- Managing Examples
- XML Preprocessing
- Generating Output
- Validating the Source
- The Linux Kernel Makefile
- Command-Line Options
- Configuration Versus Building
- Managing Command Echo
- User-Defined Functions
- The Book Makefile
- 12. Debugging Makefiles
- Debugging Features of make
- Command-Line Options
- --just-print
- --print-data-base
- --warn-undefined-variables
- The --debug Option
- Command-Line Options
- Writing Code for Debugging
- Good Coding Practices
- Defensive Coding
- Debugging Techniques
- Common Error Messages
- Syntax Errors
- missing separator
- commands commence before first target
- unterminated variable reference
- Errors in Command Scripts
- No Rule to Make Target
- Overriding Commands for Target
- Syntax Errors
- Debugging Features of make
- 6. Managing Large Projects
- III. Appendixes
- A. Running make
- B. The Outer Limits
- Data Structures
- Arithmetic
- C. GNU Free Documentation LicenseGNU ProjectFree Software Foundation (FSF)
- 0. Preamble
- 1. Applicability and Definitions
- 2. Verbatim Copying
- 3. Copying in Quantity
- 4. Modifications
- 5. Combining Documents
- 6. Collections of Documents
- 7. Aggregation with Independent Works
- 8. Translation
- 9. Termination
- 10. Future Revisions of this License
- D. About the Author
- E. OReilly: Managing Projects with GNU Make
- Index
- About the Author
- Colophon
- Copyright