From b7d2f4e189b851f35f6b9b2e9d0cc4da1c028803 Mon Sep 17 00:00:00 2001 From: Levi Harrison Date: Fri, 25 Jun 2021 08:03:58 -0400 Subject: [PATCH] Only run if yamllint is installed Signed-off-by: Levi Harrison --- Makefile.common | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.common b/Makefile.common index bbdec8ef5..a1b1ca40f 100644 --- a/Makefile.common +++ b/Makefile.common @@ -201,7 +201,11 @@ endif .PHONY: common-yamllint common-yamllint: @echo ">> running yamllint on all YAML files in the repository" +ifeq (, $(shell which yamllint)) + @echo "yamllint not installed so skipping" +else yamllint . +endif # For backward-compatibility. .PHONY: common-staticcheck