Handy Makefile Rules and Patterns

Patterns Required variable $(or $(build),$(error Must set build variable)) Optional variable with fallback $(or $(branch),master) Git Rebase on origin’s master rebase_origin_master: git pull –rebase origin master Create a git commit message template with co-authored-by set # Requires card=…, name=…, and a contributors.txt file pair: @echo “$(card) \n\nCo-authored-by: $(shell grep -i $(name) contributors.txt)” > .git/.gitmessage @git […]