Makefile Recipes for Real Projects/Generate changelog snippet

Capture commit history since the last tag.

Section: Release and versioning targets

Generate changelog snippet

makefile
makefile
changelog:
	git log --oneline --decorate $$(git describe --tags --abbrev=0)..HEAD
Explanation

Double-dollar escapes shell command substitution through make.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Release and versioning targets
Create Git tag
Tag the current commit with a release version.
OpenIn sheetmakefilesame section
Generate version file
Write current version metadata into an artifact.
OpenIn sheetmakefilesame section
Help target
List available targets and descriptions.
OpenIn sheetmakefile
Node.js targets
Lint, test, and build JavaScript or TypeScript projects.
OpenIn sheetmakefile
Docker build target
Build a container image with a version tag.
OpenIn sheetmakefile
Bootstrap target
Install development dependencies and prepare local state.
OpenIn sheetmakefile