← All courses

Make: builds and automation

Write a Makefile that rebuilds only what changed: dependencies, variables, pattern rules and wildcards.

12 tasks
  1. First Makefile: the build targeteasy
  2. Makefile with targetseasy
  3. A variable in a Makefileeasy
  4. Default target and dependenciesmedium
  5. Make clean work via .PHONYmedium
  6. Rebuild only when the source changesmedium
  7. Concatenate dependencies via $^medium
  8. A default value with overridemedium
  9. Pattern rule and automatic variablesmedium
  10. Build a report from all logs via wildcardmedium
  11. Object list from wildcard and substitutionhard
  12. Order-only prerequisite: a directory for artifactshard