aboutsummaryrefslogtreecommitdiffstats
path: root/src/bash_completion/Makefile
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-02-24 04:43:08 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-05-29 17:35:35 -0300
commitfb11081becb80d681c2c8ab61125b42b12961314 (patch)
tree65ec3be0da6000b92dd65ef98b388e5636b8759d /src/bash_completion/Makefile
parentbuild: define CC/GAWK if undefined (diff)
downloadfirejail-fb11081becb80d681c2c8ab61125b42b12961314.tar.gz
firejail-fb11081becb80d681c2c8ab61125b42b12961314.tar.zst
firejail-fb11081becb80d681c2c8ab61125b42b12961314.zip
build: allow overriding common tools
Tools: * gzip * install * rm * strip * tar For the programs not checked in configure.ac: From the manual of GNU Autoconf (version 2.71): > If you use `AC_PROG_INSTALL`, you must include `install-sh` in your > distribution So set `install` just in the Makefile. Use `$(RM)` to ensure that `-f` is always used and to make it easier to spot when `-r` is used. See commit 93d623fdf ("build: allow overriding certain tools", 2024-02-23) / PR #6222.
Diffstat (limited to 'src/bash_completion/Makefile')
-rw-r--r--src/bash_completion/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bash_completion/Makefile b/src/bash_completion/Makefile
index 91a1be0bc..c06323f64 100644
--- a/src/bash_completion/Makefile
+++ b/src/bash_completion/Makefile
@@ -3,6 +3,7 @@ ROOT = ../..
3-include $(ROOT)/config.mk 3-include $(ROOT)/config.mk
4 4
5GAWK ?= gawk 5GAWK ?= gawk
6RM ?= rm -f
6 7
7.PHONY: all 8.PHONY: all
8all: firejail.bash_completion 9all: firejail.bash_completion
@@ -10,8 +11,8 @@ all: firejail.bash_completion
10firejail.bash_completion: firejail.bash_completion.in $(ROOT)/config.mk 11firejail.bash_completion: firejail.bash_completion.in $(ROOT)/config.mk
11 $(GAWK) -f ../man/preproc.awk -- $(MANFLAGS) < $< > $@.tmp 12 $(GAWK) -f ../man/preproc.awk -- $(MANFLAGS) < $< > $@.tmp
12 sed "s|_SYSCONFDIR_|$(sysconfdir)|" < $@.tmp > $@ 13 sed "s|_SYSCONFDIR_|$(sysconfdir)|" < $@.tmp > $@
13 rm $@.tmp 14 $(RM) $@.tmp
14 15
15.PHONY: clean 16.PHONY: clean
16clean: 17clean:
17 rm -fr firejail.bash_completion 18 $(RM) -r firejail.bash_completion