From c822c110760b53d701558a347eae2803891a1c7b Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Tue, 23 Apr 2024 00:49:21 +0900 Subject: [PATCH] Add make standard rules for coverity build While coverity-scan-action supports meson/ninja directly, as we have a maintainer Makefile in the top-level, it requires the standard make rules (make all, etc.). Signed-off-by: Daiki Ueno --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3270a98a..f3076fb4 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,14 @@ -.PHONY: check-style check-style-show check-style-fix generate-code generate-docs +.PHONY: all check check-style check-style-show check-style-fix clean generate-code generate-docs + +all: + meson setup builddir + meson compile -C builddir + +check: + meson test -C builddir + +clean: + rm -rf builddir check-style: @lines=`git diff -U0 --no-color --relative origin/main -- ':!src/pkcs11.h' | clang-format-diff -p1 |wc -l`; \