[PATCH] fix clean target

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

 



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

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux