From d53c71a4f232bdafbaed7d5b1d0943d30abafcfd Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 5 Nov 2024 14:39:04 +0100 Subject: [PATCH] makefiles: fix clean rule for non srcdir builds With commit acbeaa7a8d86acc0f0e3c04723d066d995f29fe5 we started to use symlinks to link test suite shell scripts, however they remained within CLEAN_TARGETS. So when running 'make clean' within non-srcdir build dir, we were cleaning actuall shell script in this dir. So remove list of this script from CLEAN_TARGETS in this case. --- test/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Makefile.in b/test/Makefile.in index ff742038f..99a418233 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -34,7 +34,7 @@ CXXFLAGS += $(EXTRA_EXEC_CFLAGS) CLEAN_DIRS += dbus/__pycache__ $(LVM_TEST_RESULTS) ifneq (.,$(firstword $(srcdir))) -CLEAN_TARGETS += $(RUN_BASE) $(addprefix lib/,$(LIB_LVMLOCKD_CONF) $(LIB_MKE2FS_CONF)) +CLEAN_TARGETS += shell $(addprefix lib/,$(LIB_LVMLOCKD_CONF) $(LIB_MKE2FS_CONF)) endif CLEAN_TARGETS += $(shell find -H lib -type l) \ $(CXXSOURCES:%.cpp=%.o) $(CXXSOURCES:%.cpp=%.d) $(CXXSOURCES:%.cpp=%.gcno) $(CXXSOURCES:%.cpp=%.gcda)