GNU Make 4 · Variables and functions
Pass variables to commands
Export a variable to the environment of recipe commands.
export DATABASE_URL := postgres://localhost/app
Official GNU Make 4 documentation
More variables and functions commands
- Define variables
- Automatic variables
- List files and change extensions
- Run a command and capture its output
- Use conditionals
- Include another makefile
All variables and functions commands · GNU Make 4 cheatsheet