aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-02-22 10:41:35 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-02-24 18:53:06 -0300
commitf4f7a814e77dc338db655987f6eb1beb6e3ae7ea (patch)
tree2ce07f5877c5845c4136d57e6f110822c275ea57 /Makefile
parentbuild: allow overriding certain tools (diff)
downloadfirejail-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--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e46eb4949..d6d4f098c 100644
--- a/Makefile
+++ b/Makefile
@@ -364,6 +364,12 @@ extras: all
364 364
365.PHONY: cppcheck 365.PHONY: cppcheck
366cppcheck: clean 366cppcheck: 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
372cppcheck-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