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. --- test/Makefile | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'test') diff --git a/test/Makefile b/test/Makefile index 52fada86c..89855d082 100644 --- a/test/Makefile +++ b/test/Makefile @@ -2,6 +2,8 @@ ROOT = .. -include $(ROOT)/config.mk +RM ?= rm -f + TESTS=$(patsubst %/,%,$(wildcard */)) .PHONY: $(TESTS) @@ -11,14 +13,14 @@ $(TESTS): .PHONY: clean clean: - for test in $(TESTS); do rm -f "$$test/$$test.log"; done - rm -fr environment/-testdir - rm -f environment/index.html* - rm -f environment/logfile* - rm -f environment/wget-log* - rm -f sysutils/firejail_t* - rm -f utils/firejail-test-file* - rm -f utils/index.html* - rm -f utils/lstesting - rm -f utils/wget-log + for test in $(TESTS); do $(RM) "$$test/$$test.log"; done + $(RM) -r environment/-testdir + $(RM) environment/index.html* + $(RM) environment/logfile* + $(RM) environment/wget-log* + $(RM) sysutils/firejail_t* + $(RM) utils/firejail-test-file* + $(RM) utils/index.html* + $(RM) utils/lstesting + $(RM) utils/wget-log cd compile && (./compile.sh --clean || true) -- cgit v1.2.3-70-g09d2