[linux-lvm] [PATCH] fix clean target

Bastian Blank bastian at waldi.eu.org
Wed Mar 9 20:32:26 UTC 2005


The attached patch fixes the clean target in tools.

Bastian

-- 
Fascinating is a word I use for the unexpected.
		-- Spock, "The Squire of Gothos", stardate 2124.5
-------------- next part --------------
Date: Tue Mar  8 11:40:45 2005
New Revision: 71

Modified:
   lvm2/trunk/tools/Makefile.in
Log:
* tools/Makefile.in: Fix clean.


Modified: lvm2/trunk/tools/Makefile.in
==============================================================================
--- lvm2/trunk/tools/Makefile.in	(original)
+++ lvm2/trunk/tools/Makefile.in	Tue Mar  8 11:40:45 2005
@@ -20,7 +20,7 @@
   SUBDIRS += fsadm
 endif
 
-SOURCES =\
+lib_SOURCES =\
 	archiver.c \
 	dumpconfig.c \
 	formats.c \
@@ -64,6 +64,12 @@
 	vgscan.c \
 	vgsplit.c
 
+tool_SOURCES = lvm.c
+
+lib_OBJECTS = $(lib_SOURCES:%.c=%.o)
+
+SOURCES = $(lib_SOURCES) $(tool_SOURCES)
+
 TARGETS =\
 	.commands \
 	lvm
@@ -92,14 +98,14 @@
 
 include $(top_srcdir)/make.tmpl
 
-lvm: $(OBJECTS) lvm.o $(top_srcdir)/lib/liblvm.a
-	$(CC) -o $@ $(OBJECTS) lvm.o $(LDFLAGS) $(LVMLIBS) $(LIBS) -rdynamic
+lvm: $(OBJECTS) $(top_srcdir)/lib/liblvm.a
+	$(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LVMLIBS) $(LIBS) -rdynamic
 
-lvm.static: $(OBJECTS) lvm.o $(top_srcdir)/lib/liblvm.a
-	$(CC) -o $@ $(OBJECTS) lvm.o -static $(LDFLAGS) $(LVMLIBS) $(LIBS) \
+lvm.static: $(OBJECTS) $(top_srcdir)/lib/liblvm.a
+	$(CC) -o $@ $(OBJECTS) -static $(LDFLAGS) $(LVMLIBS) $(LIBS) \
 		-rdynamic
 
-liblvm2cmd.a: $(top_srcdir)/lib/liblvm.a $(OBJECTS)
+liblvm2cmd.a: $(top_srcdir)/lib/liblvm.a $(lib_OBJECTS)
 	cat $(top_srcdir)/lib/liblvm.a > $@
 	$(AR) rs $@ $(OBJECTS)
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20050309/0a16e3eb/attachment.sig>


More information about the linux-lvm mailing list