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
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 $< $@
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: