Using '^' in in_vc_files assumes the build is happening in srcdir, which is no longer possible as of: commit f96395e78eaccffbf128336382c74b1250f04032
Signed-off-by: Ján Tomko <jto...@redhat.com> --- 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 80420eada5..58a24b6276 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -871,7 +871,7 @@ sc_prohibit_cross_inclusion: safe="($$dir|util|conf|storage)";; \ *) safe="($$dir|$(mid_dirs)|util)";; \ esac; \ - in_vc_files="^src/$$dir" \ + in_vc_files="src/$$dir" \ prohibit='^# *include .$(cross_dirs_re)' \ exclude="# *include .$$safe" \ halt='unsafe cross-directory include' \ -- 2.24.1