]> sourceware.org Git - lvm2.git/commitdiff
makefiles: fix clean rule for non srcdir builds
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 5 Nov 2024 13:39:04 +0000 (14:39 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 5 Nov 2024 23:04:54 +0000 (00:04 +0100)
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

index ff742038f16349e2e34f00142b7907f033c1e56a..99a418233570cad9eb291efd8eeddd98fcb37a0a 100644 (file)
@@ -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)
This page took 0.035584 seconds and 5 git commands to generate.