[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] [PATCH] fix clean target



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
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)
 

Attachment: signature.asc
Description: Digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]