Skip to content

fsundermeyer/GNU_make_workshop

Repository files navigation

#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.

About

GNU Make Workshop March 2015

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published