Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule idea: indenting ifeq etc. with tabs #102

Open
Timmmm opened this issue Jul 16, 2024 · 0 comments
Open

Rule idea: indenting ifeq etc. with tabs #102

Timmmm opened this issue Jul 16, 2024 · 0 comments

Comments

@Timmmm
Copy link

Timmmm commented Jul 16, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant