Write content to a file from make.
Section: Shell, call, eval, and generated rules
file function
makefile
makefile
$(file >build/version.txt,$(VERSION))Explanation
GNU make can create or append files during parsing or expansion.
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 Shell, call, eval, and generated rules