The makefile is an implementation detail, so point users towards the proper way of running syntax-check if they happen to call it directly.
Signed-off-by: Andrea Bolognani <abolo...@redhat.com> --- build-aux/syntax-check.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index a37e43b9f6..b770e89efa 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -20,6 +20,11 @@ # <http://www.gnu.org/licenses/>. +all: + @echo "Do not call this file directly, use 'meson test' instead" >&2; \ + exit 1 + + ## ----- ## ## Rules ## ## ----- ## -- 2.35.3