aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 16 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 808a9beac..dcd84b7ab 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,13 @@
2ROOT = . 2ROOT = .
3-include config.mk 3-include config.mk
4 4
5# Default programs
6CC ?= cc
7CODESPELL ?= codespell
8CPPCHECK ?= cppcheck
9GAWK ?= gawk
10SCAN_BUILD ?= scan-build
11
5ifneq ($(HAVE_MAN),no) 12ifneq ($(HAVE_MAN),no)
6MAN_TARGET = man 13MAN_TARGET = man
7endif 14endif
@@ -357,18 +364,24 @@ extras: all
357 364
358.PHONY: cppcheck 365.PHONY: cppcheck
359cppcheck: clean 366cppcheck: clean
360 cppcheck --force --error-exitcode=1 --enable=warning,performance . 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
373 $(CPPCHECK) --force --error-exitcode=1 --enable=warning,performance .
361 374
362.PHONY: scan-build 375.PHONY: scan-build
363scan-build: clean 376scan-build: clean
364 scan-build $(MAKE) 377 $(SCAN_BUILD) --status-bugs $(MAKE)
365 378
366# TODO: Old codespell versions (such as v2.1.0 in CI) have issues with 379# TODO: Old codespell versions (such as v2.1.0 in CI) have issues with
367# contrib/syscalls.sh 380# contrib/syscalls.sh
368.PHONY: codespell 381.PHONY: codespell
369codespell: 382codespell:
370 @printf 'Running %s...\n' $@ 383 @printf 'Running %s...\n' $@
371 @codespell --ignore-regex 'Manuel|UE|als|chage|creat|doas|ether|isplay|readby|[Ss]hotcut' \ 384 @$(CODESPELL) --ignore-regex 'Manuel|UE|als|chage|creat|doas|ether|isplay|readby|[Ss]hotcut' \
372 -S *.d,*.gz,*.o,*.so \ 385 -S *.d,*.gz,*.o,*.so \
373 -S COPYING,m4 \ 386 -S COPYING,m4 \
374 -S ./contrib/syscalls.sh \ 387 -S ./contrib/syscalls.sh \