Software Carpentry
Automated Builds


Introduction


You Can Skip This Lecture If...


Automate, Automate, Automate


Make


Our Example


Hello, Make


Terminology


Multiple Targets


Phony Targets


Dependencies


Updating Dependencies


Conventions


Automatic Variables


Automatic Variables Example


Pattern Rules


Adding More Dependencies


Tidying Up


Defining Macros


Passing Values to Make


Functions


Commonly-Used Functions


Pros and Cons


Alternatives


Summary


Exercises

Exercise 6.1:

Make gets definitions from environment variables, command-line parameters, and explicit definitions in Makefiles. What order does it check these in?

Send comments