]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
syntax-check: use VC_LIST_EXCEPT instead of VC_LIST
authorJán Tomko <jtomko@redhat.com>
Thu, 19 Aug 2021 11:32:41 +0000 (13:32 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 20 Aug 2021 11:28:08 +0000 (13:28 +0200)
Three callers were using VC_LIST directly.

This is not wrong, because they exclude the always-excluded
files by only looking for C and/or header files.

But using VC_LIST here prevents switching it to outputting
relative paths.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
build-aux/syntax-check.mk

index e523c0bf3f37cad0ffc76fa1c1233b0b9608cc36..307255c3000ef06e56ca636ba0073f526ef364bd 100644 (file)
@@ -1689,16 +1689,16 @@ sc_prohibit-duplicate-header:
        $(PYTHON) $(top_srcdir)/scripts/prohibit-duplicate-header.py
 
 sc_spacing-check:
-       $(AM_V_GEN)$(VC_LIST) | $(GREP) '\.c$$' | xargs \
+       $(AM_V_GEN)$(VC_LIST_EXCEPT) | $(GREP) '\.c$$' | xargs \
        $(PERL) $(top_srcdir)/build-aux/check-spacing.pl || \
          { echo '$(ME): incorrect formatting' 1>&2; exit 1; }
 
 sc_mock-noinline:
-       $(AM_V_GEN)$(VC_LIST) | $(GREP) '\.[ch]$$' | $(RUNUTF8) xargs \
+       $(AM_V_GEN)$(VC_LIST_EXCEPT) | $(GREP) '\.[ch]$$' | $(RUNUTF8) xargs \
        $(PYTHON) $(top_srcdir)/scripts/mock-noinline.py
 
 sc_header-ifdef:
-       $(AM_V_GEN)$(VC_LIST) | $(GREP) '\.[h]$$' | $(RUNUTF8) xargs \
+       $(AM_V_GEN)$(VC_LIST_EXCEPT) | $(GREP) '\.[h]$$' | $(RUNUTF8) xargs \
        $(PYTHON) $(top_srcdir)/scripts/header-ifdef.py
 
 sc_group-qemu-caps: