Skip to content

Commit

Permalink
Add make standard rules for coverity build
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ueno authored and simo5 committed Apr 22, 2024
1 parent 0af4076 commit c822c11
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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`; \
Expand Down

0 comments on commit c822c11

Please sign in to comment.