Skip to contentSkip to conversation

LVM2/test Makefile.in

PATCH [email protected] 1 participant 1 message Jan 13, 2011

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2011-01-13 14:58:59

Modified files:
test : Makefile.in

Log message:
Include default make.tmpl

Use default clean targets for this Makefile
Use also same build flags for compiling testing tools like harness.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/Makefile.in.diff?cvsroot=lvm2&r1=1.51&r2=1.52

test/Makefile.in +3 -6
@@ -24,6 +24,7 @@
 abs_builddir = @abs_builddir@
 abs_top_builddir = @abs_top_builddir@
 abs_top_srcdir = @abs_top_srcdir@
+include $(top_builddir)/make.tmpl
 
 T ?= .
 S ?= @ # never match anything by default
@@ -59,7 +60,7 @@
 	ln -sf not lib/should
 
 lib/%: $(srcdir)/lib/%.c .lib-dir-stamp
-	$(CC) -o $@ $<
+	$(CC) $(DEFS) $(CFLAGS) -o $@ $<
 
 lib/%: $(srcdir)/lib/%.sh .lib-dir-stamp
 	cp $< $@
@@ -100,13 +101,9 @@
 	touch $@
 
 clean:
-	rm -rf bin .lib-dir-stamp .test-stamp
-	rm -f $(LIB)
-	rm -f lib/dmsetup lib/clvmd lib/dmeventd
 	for i in lvm $$(cat ../tools/.commands); do rm -f lib/$$i; done
 	if test "$(srcdir)" != . ; then rm -f $(subst $(srcdir)/, ,$(RUN)) lvm2app.sh ; fi
 
-distclean: clean
-	rm -f Makefile
+CLEAN_TARGETS += .lib-dir-stamp .test-stamp -f $(LIB) lib/dmsetup lib/clvmd lib/dmeventd
 
 .NOTPARALLEL: