#GNU Make Workshop
A two-day training on GNU make that will teach all basics. It is devided into four lessons:
- Basics:
- What is make?
- How to write a rule.
- Dependencies
- Rules and Variables
- rules: explicit rules, empty rules, phony rules
- shell syntax
- variables: naming, assignment, expansion, origin
- target-specific variables, automatic variables
- vPATH and vpath
- Pattern Ruls, Implicit Rules and Functions
- pattern rules
- implicit rules and their usage
- built-in functions
- Macros and Conditionals
- multi-line variables and user-defined functions
- the command-line modifier "@"
- conditionals
Each lesson ends with an exercise that requires to utilize what was learned in the previous lesson. During the exercises a make file, that converts FLAC files to ogg or mp3, adds replay gain and downloads a cover file, is developed. Starting with a very minimalistic make file, it is continuously upgraded with each exercise. The final result can be used to automatically convert a large flac collection to mp3 or ogg.