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