diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2024-02-23 18:09:05 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2024-02-24 18:50:43 -0300 |
commit | 93d623fdf9bee70bfae50168ac163825361f38e0 (patch) | |
tree | 4d944eee9eebdfc7c639577a685769c470a93a01 /src/man/Makefile | |
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 'src/man/Makefile')
-rw-r--r-- | src/man/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/man/Makefile b/src/man/Makefile index 526ed7fcb..1c1fd49a5 100644 --- a/src/man/Makefile +++ b/src/man/Makefile | |||
@@ -13,7 +13,7 @@ all: $(TARGET) | |||
13 | # foo.1: foo.1.in | 13 | # foo.1: foo.1.in |
14 | $(MOD_DIR)/%: $(MOD_DIR)/%.in $(ROOT)/config.mk | 14 | $(MOD_DIR)/%: $(MOD_DIR)/%.in $(ROOT)/config.mk |
15 | @printf 'Generating %s from %s\n' $@ $< | 15 | @printf 'Generating %s from %s\n' $@ $< |
16 | @gawk -f $(MOD_DIR)/preproc.awk -- $(MANFLAGS) <$< | \ | 16 | @$(GAWK) -f $(MOD_DIR)/preproc.awk -- $(MANFLAGS) <$< | \ |
17 | $(MOD_DIR)/mkman.sh $(VERSION) >$@ | 17 | $(MOD_DIR)/mkman.sh $(VERSION) >$@ |
18 | 18 | ||
19 | # foo.1.gz: foo.1 | 19 | # foo.1.gz: foo.1 |