diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2024-02-24 04:43:08 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2024-05-29 17:35:35 -0300 |
commit | fb11081becb80d681c2c8ab61125b42b12961314 (patch) | |
tree | 65ec3be0da6000b92dd65ef98b388e5636b8759d /src/prog.mk | |
parent | build: define CC/GAWK if undefined (diff) | |
download | firejail-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/prog.mk')
-rw-r--r-- | src/prog.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/prog.mk b/src/prog.mk index 4f9309d8c..3e89a6ba8 100644 --- a/src/prog.mk +++ b/src/prog.mk | |||
@@ -6,6 +6,7 @@ | |||
6 | # define EXTRA_OBJS and extend CLEANFILES. | 6 | # define EXTRA_OBJS and extend CLEANFILES. |
7 | 7 | ||
8 | CC ?= cc | 8 | CC ?= cc |
9 | RM ?= rm -f | ||
9 | 10 | ||
10 | HDRS := | 11 | HDRS := |
11 | SRCS := $(sort $(wildcard $(MOD_DIR)/*.c)) | 12 | SRCS := $(sort $(wildcard $(MOD_DIR)/*.c)) |
@@ -27,4 +28,4 @@ $(PROG): $(OBJS) $(EXTRA_OBJS) $(ROOT)/config.mk | |||
27 | $(CC) $(PROG_LDFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(EXTRA_OBJS) $(LIBS) | 28 | $(CC) $(PROG_LDFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(EXTRA_OBJS) $(LIBS) |
28 | 29 | ||
29 | .PHONY: clean | 30 | .PHONY: clean |
30 | clean:; rm -fr $(PROG) $(CLEANFILES) | 31 | clean:; $(RM) -r $(PROG) $(CLEANFILES) |