summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-02-27 17:32:19 +0100
committerJim Meyering <meyering@redhat.com>2009-08-25 09:21:00 +0200
commit1130e181eef518345b9262478f7b0195fe332dd9 (patch)
tree871975e07db0cbe01467f22b8ed321bb6678afe3 /cfg.mk
parent5e778f7c8d1ecf3d8f11385db013af2ba026e2a5 (diff)
downloadcoreutils-1130e181eef518345b9262478f7b0195fe332dd9.tar.xz
maint: teach "make syntax-check" the space-only indentation rule
* cfg.mk (sc_prohibit_tab_based_indentation): New rule. * .x-sc_prohibit_tab_based_indentation: New file. * Makefile.am (syntax_check_exceptions): Add file, .x-sc_prohibit_tab_based_indentation.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index 05dbb39b9..b63e76b7e 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -206,4 +206,10 @@ sc_strftime_check:
rm -f $@-src $@-info; \
fi
+# Indent only with spaces.
+sc_prohibit_tab_based_indentation:
+ @re='^ * ' \
+ msg='TAB in indentation; use only spaces' \
+ $(_prohibit_regexp)
+
include $(srcdir)/dist-check.mk