Managing Projects with Make

Front Cover
"O'Reilly Media, Inc.", 1991 - Business & Economics - 149 pages
Preface. The Value of make. Lessons from make. Variants. Scope of This Book. Getting Automated Tests. FTP. FTPMAIL. BITFTP UUCP. Conventions Used in This Handbook. Acknowledgments. We'd Like to Hear From You. Chapter 1: How to Write a Simple Makefile The Description File Dependency Checking Minimizing Rebuilds Invoking make Basic Rules of Syntax. Chapter 2: Macros Syntax Rules Internally Defined Macros Macro Definitions on the Command Line Shell Variables Priority of Macro Assignments Relying on Environment Variables for Defaults Macro String Substitution Internal Macros for Prerequisites and Targets. Chapter 3: Suffix Rules What is a Suffix Rule? Command Options Internal Macros Commands Supported by Default Suffix Rules Fortran and Pascal SCCS and RCS Libraries (Archives) Using Parentheses for Library Modules A Library Example Maintaining Libraries The Double Colon lex and yacc The Null Suffix How to Display Defaults Generating the Display What the Display Means .SUFFIXES and Precedence Writing Your Own Suffix Rules A Sample Collection of Suffix Rules Nullifying Rules Conflicts With Default Suffixes. Chapter 4: Commands Filename Pattern Matching Effects of Newlines on Commands Errors and Exit Status Which Shell? Pathnames and Security. Chapter 5: Project Management Dummy Targets Recursive make on Directories General Tips on Recursive make Other Techniques for Multiple Directories Directories in Internal Macros Viewpath (VPATH Macro) Compiler Options and directives Forcing Remakes Maintaining Multiple Variants Through Explicit Targets Maintaining Multiple Variants in Different Directories Maintaining Variants Through Suffix Rules Header Files Global Definitions (include Statement) Distributed Files and NFS Issues. Chapter 6: Command-line Usage and Special Targets Description Filenames Status Information and Debugging Errors and File Deletion The MAKEFLAGS Macro Miscellaneous Features Affecting Defaults. Chapter 7: Troubleshooting Debugging a Build ( -d option) Syntax Errors Don't Know How to Make Target Up to Date Command Not Found, or Cannot Load Syntax Errors in Multi-line Commands Inconsistent Lines, or Too Many Lines Unrecognized Macros Default Rules Ignored Appendix A: Quick Reference Command Line Description File Lines Macros Internal Macros Macro Modifiers Macro String Substitution Macros with Special Handling Special Target Names Appendix B: Popular Extensions mk and nmake GNU make imake makedepend shape Parallel and Distributed Implementations Appendix C: Features That Differ Between Variants of make Background List of Differences Tests You Can Run Macro String Substitution File and Directory Macros Parenthesis Syntax for Libraries Single-suffix Rules and .sh Rules Default Shell MAKE and MAKEFLAGS Macros include Statement VPATH. Index.
 

Contents

XIV
1
XV
2
XVI
3
XVII
4
XVIII
5
XIX
7
XX
9
XXI
10
XLVIII
85
XLIX
88
L
89
LI
93
LII
94
LIV
96
LVI
97
LVII
99

XXII
12
XXIII
13
XXV
14
XXVI
16
XXVII
18
XXVIII
19
XXIX
23
XXX
24
XXXI
28
XXXII
39
XXXIII
48
XXXIV
57
XXXVI
58
XXXVII
59
XXXVIII
61
XXXIX
64
XL
65
XLI
67
XLIII
68
XLIV
70
XLV
72
XLVI
74
XLVII
78
LVIII
101
LX
102
LXI
103
LXII
105
LXIII
106
LXV
108
LXVI
109
LXIX
110
LXX
112
LXXI
113
LXXII
115
LXXIV
116
LXXV
118
LXXVI
119
LXXVII
122
LXXVIII
123
LXXIX
125
LXXX
127
LXXXI
128
LXXXIII
130
LXXXIV
137
Copyright

Other editions - View all

Common terms and phrases