Prevent a variable from propagating to recipes and sub-makes.
Section: Variables and assignment
Stop exporting a variable
makefile
makefile
unexport DEBUGExplanation
Useful when a parent environment leaks unwanted values.
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 Variables and assignment