From fb11081becb80d681c2c8ab61125b42b12961314 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Sat, 24 Feb 2024 04:43:08 -0300 Subject: 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. --- src/prog.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/prog.mk') 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 @@ # define EXTRA_OBJS and extend CLEANFILES. CC ?= cc +RM ?= rm -f HDRS := SRCS := $(sort $(wildcard $(MOD_DIR)/*.c)) @@ -27,4 +28,4 @@ $(PROG): $(OBJS) $(EXTRA_OBJS) $(ROOT)/config.mk $(CC) $(PROG_LDFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(EXTRA_OBJS) $(LIBS) .PHONY: clean -clean:; rm -fr $(PROG) $(CLEANFILES) +clean:; $(RM) -r $(PROG) $(CLEANFILES) -- cgit v1.2.3-70-g09d2