checkmake
checkmake copied to clipboard
Rule idea: indenting ifeq etc. with tabs
Hey, just an idea for a rule: if you indent ifeq with tabs then apparently older Make versions will just ignore it (it is considered part of the rule) but newer Make versions will give you an extremely confusing "missing endif" error.
Example:
ifeq ($(FOO), 0)
XXX += --xxx
else
ifeq ($(BAR), 1)
XXX += --xxx
endif
endif