Make
Command line
make -B
to rebuild everything
Patsubst and pattern rules
- Pattern substitution syntax:
$(patsubst ./src/%.md, ./www/%.html, $(SRC_FILES))
- Use
%
as wildcard in recipe $<
is input file,$@
is output file
Misc.
- Variables declared with
:=
are expanded only once $(shell find -name '*.md')
to find input files recursively for variables