summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.x-sc_prohibit_tab_based_indentation6
-rw-r--r--Makefile.am1
-rw-r--r--cfg.mk6
3 files changed, 13 insertions, 0 deletions
diff --git a/.x-sc_prohibit_tab_based_indentation b/.x-sc_prohibit_tab_based_indentation
new file mode 100644
index 000000000..2f5d92120
--- /dev/null
+++ b/.x-sc_prohibit_tab_based_indentation
@@ -0,0 +1,6 @@
+^GNUMakefile$
+Makefile\.am$
+\.mk$
+^tests/pr/
+ChangeLog.*
+^man/help2man$
diff --git a/Makefile.am b/Makefile.am
index e6a880d51..57b3e334d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -49,6 +49,7 @@ syntax_check_exceptions = \
.x-sc_prohibit_atoi_atof \
.x-sc_prohibit_stat_st_blocks \
.x-sc_prohibit_strcmp \
+ .x-sc_prohibit_tab_based_indentation \
.x-sc_require_config_h \
.x-sc_require_config_h_first \
.x-sc_space_tab \
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