summaryrefslogtreecommitdiff
path: root/Makefile.maint
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.maint')
-rw-r--r--Makefile.maint3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.maint b/Makefile.maint
index b5c1e43f9..38468db7b 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -91,8 +91,9 @@ local-checks-available = \
local-check = $(filter-out $(local-checks-to-skip), $(local-checks-available))
-.PHONY: $(syntax-check-rules)
+# Collect the names of rules starting with `sc_'.
syntax-check-rules := $(shell sed -n 's/^\(sc_[a-zA-Z0-9_-]*\):.*/\1/p' $(ME))
+.PHONY: $(syntax-check-rules)
syntax-check: $(syntax-check-rules)
# @grep -nE '# *include <(limits|std(def|arg|bool))\.h>' \