Skip to content

Instantly share code, notes, and snippets.

@g-andrade
Last active June 25, 2020 11:40
Show Gist options
  • Save g-andrade/0dc56286232b04ed26d6aa9e6e7721dc to your computer and use it in GitHub Desktop.
Save g-andrade/0dc56286232b04ed26d6aa9e6e7721dc to your computer and use it in GitHub Desktop.
Makefile rule that looks for bad indentation within itself
check-makefile-indentation:
@awk '/^[[:space:]]/ && /^[^\t]/{print FILENAME":"FNR":"$$0}' \
$(MAKEFILE_LIST)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment