title, author, theme, colortheme
title |
author |
theme |
colortheme |
|
|
|
|
Intro
The fundamental problem:
You can't type this after every test.
First Solution
At this point, every test takes 10 minutes.
Second Solution
Makefile Solutions
- input, process, output.
- automatic idempotence
Basic
- Gotcha: directories
- This, that, and these
Repetition, Repetition, Repetition
Variables
- From your shell.
- New variables.
- Filenames as variables.
- Gotcha: no shell variables, only make!
Equality
- Variables with '=', never ':='.
- Gotcha: one shell per line.
- Variables as shell output.
Phonies, and the Problems with Lies
- clean (common)
- check (excellent)
Non-Compiling Checks
make
-n
- Gotcha: shell output variables.
The Fourth Sigil: %
- Standard rules, e.g. ImageMagick, copying, et c.
- Gotcha: intermediaries are deleted.
Bling: make2graph
- Gotcha: completely outdated.
Inclusivity
include dir/Makefile
- Gotcha: directory has not changed
$(MAKEFILE_LIST)
Special Commands
- dir
DIR = test -d $(dir $@) || mkdir $(dir $@)
- patsubst
- Wildcards (or not?)
Maintanance