mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
makefiles: fix clean rule for non srcdir builds
With commit acbeaa7a8d
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.
This commit is contained in:
parent
dfa74465e9
commit
d53c71a4f2
@ -34,7 +34,7 @@ CXXFLAGS += $(EXTRA_EXEC_CFLAGS)
|
|||||||
|
|
||||||
CLEAN_DIRS += dbus/__pycache__ $(LVM_TEST_RESULTS)
|
CLEAN_DIRS += dbus/__pycache__ $(LVM_TEST_RESULTS)
|
||||||
ifneq (.,$(firstword $(srcdir)))
|
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
|
endif
|
||||||
CLEAN_TARGETS += $(shell find -H lib -type l) \
|
CLEAN_TARGETS += $(shell find -H lib -type l) \
|
||||||
$(CXXSOURCES:%.cpp=%.o) $(CXXSOURCES:%.cpp=%.d) $(CXXSOURCES:%.cpp=%.gcno) $(CXXSOURCES:%.cpp=%.gcda)
|
$(CXXSOURCES:%.cpp=%.o) $(CXXSOURCES:%.cpp=%.d) $(CXXSOURCES:%.cpp=%.gcno) $(CXXSOURCES:%.cpp=%.gcda)
|
||||||
|
Loading…
Reference in New Issue
Block a user