mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
makefiles: ensure no old .h are left
Ensure make clean cleans any left-over file from their previous location so they are not in conflict with new ones. Also hide error message when .commands file is not present.
This commit is contained in:
parent
026db90621
commit
8ff43c3705
@ -229,3 +229,5 @@ include $(top_builddir)/make.tmpl
|
|||||||
CFLAGS += $(BLKID_CFLAGS) $(UDEV_CFLAGS) $(VALGRIND_CFLAGS)
|
CFLAGS += $(BLKID_CFLAGS) $(UDEV_CFLAGS) $(VALGRIND_CFLAGS)
|
||||||
|
|
||||||
$(SUBDIRS): $(LIB_STATIC)
|
$(SUBDIRS): $(LIB_STATIC)
|
||||||
|
|
||||||
|
CLEAN_TARGETS += misc/configure.h misc/lvm-version.h
|
||||||
|
@ -281,7 +281,7 @@ lib/paths: lib/paths-common
|
|||||||
echo 'abs_builddir="$(abs_builddir)"' >> $@-t
|
echo 'abs_builddir="$(abs_builddir)"' >> $@-t
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
|
||||||
CMDS = lvm $(shell cat $(top_builddir)/tools/.commands)
|
CMDS = lvm $(shell cat $(top_builddir)/tools/.commands 2>/dev/null)
|
||||||
LIB = $(addprefix lib/, $(LIB_SHARED) $(LIB_LOCAL) $(LIB_NOT) $(LIB_LINK_NOT) $(LIB_FLAVOURS))
|
LIB = $(addprefix lib/, $(LIB_SHARED) $(LIB_LOCAL) $(LIB_NOT) $(LIB_LINK_NOT) $(LIB_FLAVOURS))
|
||||||
|
|
||||||
.tests-stamp: $(ALL) $(LIB) $(SUBDIRS)
|
.tests-stamp: $(ALL) $(LIB) $(SUBDIRS)
|
||||||
|
Loading…
Reference in New Issue
Block a user