1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-28 02:50:41 +03:00

Include default make.tmpl

Use default clean targets for this Makefile
Use also same build flags for compiling testing tools like harness.
This commit is contained in:
Zdenek Kabelac 2011-01-13 14:58:59 +00:00
parent 424873390b
commit 84b6fab321

View File

@ -24,6 +24,7 @@ abs_srcdir = @abs_srcdir@
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 @@ lib/should: lib/not
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 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
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: