I work with a Makefile generated by an external tool (Netbeans), where I can not change the logic of the main target, but I am able to \"inject\" logic in a target that is execu
You can have the all target do nothing if a variable is not set:
ifeq ($(SOME_VAR),) $(info SOME_VAR not set!) all: else all: target1 target2 targetetc endif