aboutsummaryrefslogtreecommitdiffstats
path: root/src/man/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/man/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/man/Makefile')
-rw-r--r--src/man/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/man/Makefile b/src/man/Makefile
index 682aadaad..767920e2b 100644
--- a/src/man/Makefile
+++ b/src/man/Makefile
@@ -3,6 +3,8 @@ ROOT = ../..
3-include $(ROOT)/config.mk 3-include $(ROOT)/config.mk
4 4
5GAWK ?= gawk 5GAWK ?= gawk
6GZIP ?= gzip
7RM ?= rm -f
6 8
7MOD_DIR := $(ROOT)/src/man 9MOD_DIR := $(ROOT)/src/man
8MANPAGES_IN := $(sort $(wildcard $(MOD_DIR)/*.in)) 10MANPAGES_IN := $(sort $(wildcard $(MOD_DIR)/*.in))
@@ -21,8 +23,8 @@ $(MOD_DIR)/%: $(MOD_DIR)/%.in $(ROOT)/config.mk
21# foo.1.gz: foo.1 23# foo.1.gz: foo.1
22$(MOD_DIR)/%.gz: $(MOD_DIR)/% 24$(MOD_DIR)/%.gz: $(MOD_DIR)/%
23 @printf 'Generating %s from %s\n' $@ $< 25 @printf 'Generating %s from %s\n' $@ $<
24 @rm -f $@ 26 @$(RM) $@
25 @gzip -n9 $< 27 @$(GZIP) -n9 $<
26 28
27.PHONY: clean 29.PHONY: clean
28clean:; rm -f *.1 *.5 *.gz 30clean:; $(RM) *.1 *.5 *.gz