aboutsummaryrefslogtreecommitdiffstats
path: root/src/zsh_completion
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-02-23 18:09:05 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-02-24 18:50:43 -0300
commit93d623fdf9bee70bfae50168ac163825361f38e0 (patch)
tree4d944eee9eebdfc7c639577a685769c470a93a01 /src/zsh_completion
parentprofiles: drop paths already in wusc (#6218) (diff)
downloadfirejail-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 'src/zsh_completion')
-rw-r--r--src/zsh_completion/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zsh_completion/Makefile b/src/zsh_completion/Makefile
index bf83877fb..e964d39ec 100644
--- a/src/zsh_completion/Makefile
+++ b/src/zsh_completion/Makefile
@@ -6,7 +6,7 @@ ROOT = ../..
6all: _firejail 6all: _firejail
7 7
8_firejail: _firejail.in $(ROOT)/config.mk 8_firejail: _firejail.in $(ROOT)/config.mk
9 gawk -f ../man/preproc.awk -- $(MANFLAGS) < $< > $@.tmp 9 $(GAWK) -f ../man/preproc.awk -- $(MANFLAGS) < $< > $@.tmp
10 sed "s|_SYSCONFDIR_|$(sysconfdir)|" < $@.tmp > $@ 10 sed "s|_SYSCONFDIR_|$(sysconfdir)|" < $@.tmp > $@
11 rm $@.tmp 11 rm $@.tmp
12 12