Write current version metadata into an artifact.

Section: Release and versioning targets

Generate version file

makefile
makefile
version.txt:
	@printf '%s\n' '$(VERSION)' > $@
Explanation

Useful for app metadata and build info.

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 changelog snippet
Capture commit history since the last tag.
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