checkmake icon indicating copy to clipboard operation
checkmake copied to clipboard

Rule idea: indenting ifeq etc. with tabs

Open Timmmm opened this issue 1 year ago • 0 comments

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

Timmmm avatar Jul 16 '24 16:07 Timmmm