Check whether a variable is defined.
Section: Includes and conditionals
ifdef conditional
makefile
makefile
ifdef CI
TEST_FLAGS += --maxfail=1
endifExplanation
Useful for CI-vs-local behavior.
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 Includes and conditionals