Emit diagnostics or abort parsing.
Section: Shell, call, eval, and generated rules
warning and error functions
makefile
makefile
$(warning building with DEBUG=$(DEBUG))
$(if $(DB_URL),,$(error DB_URL is required))Explanation
Great for fail-fast validation of required inputs.
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