build-aux: add sc_ prefix to more syntax checks

That way our meson build file will correctly pick them up.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Ján Tomko 2020-08-03 11:46:23 +02:00
parent 5c01b41763
commit 0fd2f4310a

View File

@ -1874,9 +1874,9 @@ sc_prohibit_path_max_allocation:
$(_sc_search_regexp) $(_sc_search_regexp)
ifneq ($(_gl-Makefile),) ifneq ($(_gl-Makefile),)
syntax-check: spacing-check test-wrap-argv \ syntax-check: sc_spacing-check sc_test-wrap-argv \
prohibit-duplicate-header mock-noinline group-qemu-caps \ sc_prohibit-duplicate-header sc_mock-noinline sc_group-qemu-caps \
header-ifdef sc_header-ifdef
@if ! cppi --version >/dev/null 2>&1; then \ @if ! cppi --version >/dev/null 2>&1; then \
echo "*****************************************************" >&2; \ echo "*****************************************************" >&2; \
echo "* cppi not installed, some checks have been skipped *" >&2; \ echo "* cppi not installed, some checks have been skipped *" >&2; \
@ -1890,28 +1890,28 @@ syntax-check: spacing-check test-wrap-argv \
endif endif
# Don't include duplicate header in the source (either *.c or *.h) # Don't include duplicate header in the source (either *.c or *.h)
prohibit-duplicate-header: sc_prohibit-duplicate-header:
$(AM_V_GEN)$(VC_LIST_EXCEPT) | $(GREP) '\.[chx]$$' | $(RUNUTF8) xargs \ $(AM_V_GEN)$(VC_LIST_EXCEPT) | $(GREP) '\.[chx]$$' | $(RUNUTF8) xargs \
$(PYTHON) $(top_srcdir)/scripts/prohibit-duplicate-header.py $(PYTHON) $(top_srcdir)/scripts/prohibit-duplicate-header.py
spacing-check: sc_spacing-check:
$(AM_V_GEN)$(VC_LIST) | $(GREP) '\.c$$' | xargs \ $(AM_V_GEN)$(VC_LIST) | $(GREP) '\.c$$' | xargs \
$(PERL) $(top_srcdir)/build-aux/check-spacing.pl || \ $(PERL) $(top_srcdir)/build-aux/check-spacing.pl || \
{ echo '$(ME): incorrect formatting' 1>&2; exit 1; } { echo '$(ME): incorrect formatting' 1>&2; exit 1; }
mock-noinline: sc_mock-noinline:
$(AM_V_GEN)$(VC_LIST) | $(GREP) '\.[ch]$$' | $(RUNUTF8) xargs \ $(AM_V_GEN)$(VC_LIST) | $(GREP) '\.[ch]$$' | $(RUNUTF8) xargs \
$(PYTHON) $(top_srcdir)/scripts/mock-noinline.py $(PYTHON) $(top_srcdir)/scripts/mock-noinline.py
header-ifdef: sc_header-ifdef:
$(AM_V_GEN)$(VC_LIST) | $(GREP) '\.[h]$$' | $(RUNUTF8) xargs \ $(AM_V_GEN)$(VC_LIST) | $(GREP) '\.[h]$$' | $(RUNUTF8) xargs \
$(PYTHON) $(top_srcdir)/scripts/header-ifdef.py $(PYTHON) $(top_srcdir)/scripts/header-ifdef.py
test-wrap-argv: sc_test-wrap-argv:
$(AM_V_GEN)$(VC_LIST) | $(GREP) -E '\.(ldargs|args)' | $(RUNUTF8) xargs \ $(AM_V_GEN)$(VC_LIST) | $(GREP) -E '\.(ldargs|args)' | $(RUNUTF8) xargs \
$(PYTHON) $(top_srcdir)/scripts/test-wrap-argv.py --check $(PYTHON) $(top_srcdir)/scripts/test-wrap-argv.py --check
group-qemu-caps: sc_group-qemu-caps:
$(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(top_srcdir)/scripts/group-qemu-caps.py \ $(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(top_srcdir)/scripts/group-qemu-caps.py \
--check --prefix $(top_srcdir)/ --check --prefix $(top_srcdir)/