diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2024-02-22 10:41:35 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2024-02-24 18:53:06 -0300 |
commit | f4f7a814e77dc338db655987f6eb1beb6e3ae7ea (patch) | |
tree | 2ce07f5877c5845c4136d57e6f110822c275ea57 /Makefile | |
parent | build: allow overriding certain tools (diff) | |
download | firejail-f4f7a814e77dc338db655987f6eb1beb6e3ae7ea.tar.gz firejail-f4f7a814e77dc338db655987f6eb1beb6e3ae7ea.tar.zst firejail-f4f7a814e77dc338db655987f6eb1beb6e3ae7ea.zip |
build: sync cppcheck targets with CI
Changes:
* Use the same command from the cppcheck CI job in the cppcheck target
* Add cppcheck-old target based on the cppcheck_old CI job
* Call the make targets in CI to avoid duplicating the commands
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -364,6 +364,12 @@ extras: all | |||
364 | 364 | ||
365 | .PHONY: cppcheck | 365 | .PHONY: cppcheck |
366 | cppcheck: clean | 366 | cppcheck: clean |
367 | $(CPPCHECK) --force --error-exitcode=1 --enable=warning,performance \ | ||
368 | -i src/firejail/checkcfg.c -i src/firejail/main.c . | ||
369 | |||
370 | # For cppcheck 1.x; see .github/workflows/check-c.yml | ||
371 | .PHONY: cppcheck-old | ||
372 | cppcheck-old: clean | ||
367 | $(CPPCHECK) --force --error-exitcode=1 --enable=warning,performance . | 373 | $(CPPCHECK) --force --error-exitcode=1 --enable=warning,performance . |
368 | 374 | ||
369 | .PHONY: scan-build | 375 | .PHONY: scan-build |