i
Short Contents
1 Overview of make . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 An Introduction to Makefiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3 Writing Makefiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4 Writing Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5 Writing Recipes in Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
6 How to Use Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
7 Conditional Parts of Makefiles . . . . . . . . . . . . . . . . . . . . . . . . . . 77
8 Functions for Transforming Text . . . . . . . . . . . . . . . . . . . . . . . . 83
9 How to Run make . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
10 Using Implicit Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
11 Using make to Update Archive Files . . . . . . . . . . . . . . . . . . . . 129
12 Extending GNU make . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
13 Features of GNU make . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
14 Incompatibilities and Missing Features . . . . . . . . . . . . . . . . . . 147
15 Makefile Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
A Quick Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
B Errors Generated by Make . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
C Complex Makefile Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
Index of Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
Index of Functions, Variables, & Directives . . . . . . . . . . . . . . . . . . 199
Komentarze do niniejszej Instrukcji