diff options
author | 2024-02-23 18:09:05 -0300 | |
---|---|---|
committer | 2024-02-24 18:50:43 -0300 | |
commit | 93d623fdf9bee70bfae50168ac163825361f38e0 (patch) | |
tree | 4d944eee9eebdfc7c639577a685769c470a93a01 /config.mk.in | |
parent | profiles: drop paths already in wusc (#6218) (diff) | |
download | firejail-93d623fdf9bee70bfae50168ac163825361f38e0.tar.gz firejail-93d623fdf9bee70bfae50168ac163825361f38e0.tar.zst firejail-93d623fdf9bee70bfae50168ac163825361f38e0.zip |
build: allow overriding certain tools
Allow overriding the following tools at configure-time and build-time:
* codespell
* cppcheck
* gawk
* scan-build
For example, instead of hardcoding `gawk`, enable overriding it at
configure-time with:
./configure GAWK=/path/to/gawk
To override it for a single `make` invocation:
make GAWK=/path/to/gawk
Also, add default values for the programs that are not found (rather
than leaving the variables empty), to make error messages clearer when
trying to run them:
$ make CPPCHECK= cppcheck-old
[...]
force --error-exitcode=1 --enable=warning,performance .
make: force: No such file or directory
$ make CPPCHECK=cppcheck cppcheck-old
[...]
cppcheck --force --error-exitcode=1 --enable=warning,performance .
make: cppcheck: No such file or directory
Diffstat (limited to 'config.mk.in')
-rw-r--r-- | config.mk.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config.mk.in b/config.mk.in index 1521a2633..253b86435 100644 --- a/config.mk.in +++ b/config.mk.in | |||
@@ -75,6 +75,11 @@ MANFLAGS = \ | |||
75 | # the user building the package); see the following for details: | 75 | # the user building the package); see the following for details: |
76 | # https://www.gnu.org/software/automake/manual/1.16.5/html_node/User-Variables.html | 76 | # https://www.gnu.org/software/automake/manual/1.16.5/html_node/User-Variables.html |
77 | CC=@CC@ | 77 | CC=@CC@ |
78 | CODESPELL=@CODESPELL@ | ||
79 | CPPCHECK=@CPPCHECK@ | ||
80 | GAWK=@GAWK@ | ||
81 | SCAN_BUILD=@SCAN_BUILD@ | ||
82 | |||
78 | CFLAGS=@CFLAGS@ | 83 | CFLAGS=@CFLAGS@ |
79 | CPPFLAGS=@CPPFLAGS@ | 84 | CPPFLAGS=@CPPFLAGS@ |
80 | LDFLAGS=@LDFLAGS@ | 85 | LDFLAGS=@LDFLAGS@ |