Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 1.03 KB

README.md

File metadata and controls

25 lines (22 loc) · 1.03 KB

#GNU Make Workshop

A two-day training on GNU make that will teach all basics. It is devided into four lessons:

  1. Basics:
  • What is make?
  • How to write a rule.
  • Dependencies
  1. 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
  1. Pattern Ruls, Implicit Rules and Functions
  • pattern rules
  • implicit rules and their usage
  • built-in functions
  1. 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.