The pattern in build-aux/syntax-check.mk is written specifically so that it won't match itself, which makes having an exception for the file unnecessary. Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx> --- build-aux/syntax-check.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index 0637a42e94..8d30b0e75a 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -1573,7 +1573,7 @@ exclude_file_name_regexp--sc_gettext_init = \ ^((tests|examples)/|tools/virt-login-shell.c) exclude_file_name_regexp--sc_copyright_usage = \ - ^COPYING(|\.LESSER)|build-aux/syntax-check.mk$$ + ^COPYING(|\.LESSER)$$ exclude_file_name_regexp--sc_flags_usage = \ ^(build-aux/syntax-check\.mk|docs/|src/util/virnetdevtap\.c$$|tests/((vir(cgroup|pci|test|usb)|nss|qemuxml2argv|qemusecurity)mock|virfilewrapper)\.c$$) -- 2.35.3