How to abort makefile if variable not set?
How could I abort a make/makefile execution based on a makefile’s variable not being set/valued? I came up with this, but works only if caller doesn’t explicitly run a target (i.e. runs make only). ifeq ($(MY_FLAG),) abort: ## This MUST be the first target 🙁 ugly @echo Variable MY_FLAG not set && false endif all: … Read more