summaryrefslogtreecommitdiffstats
path: root/daemons/dmeventd/Makefile.in
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2010-03-29 14:11:17 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2010-03-29 14:11:17 +0000
commitb41f5924bf8ba0a8039a319e286e207f0c8f037a (patch)
treea4c31b179e3a30b00d7afd0a54db459a00690ff0 /daemons/dmeventd/Makefile.in
parent1a91d0914e9709417f0582999eaaef85d80a29ce (diff)
downloadlvm2-b41f5924bf8ba0a8039a319e286e207f0c8f037a.tar.gz
lvm2-b41f5924bf8ba0a8039a319e286e207f0c8f037a.tar.xz
lvm2-b41f5924bf8ba0a8039a319e286e207f0c8f037a.zip
Update cflow file generation - support build dir and use $(top_srcdir)
to obtain sources. Create make.tmpl target for simplier generation of cflow files with the help of CFLOW_LIST, CFLOW_LIST_TARGET, CFLOW_TARGET. Still cflow usage is not perfect.
Diffstat (limited to 'daemons/dmeventd/Makefile.in')
-rw-r--r--daemons/dmeventd/Makefile.in17
1 files changed, 15 insertions, 2 deletions
diff --git a/daemons/dmeventd/Makefile.in b/daemons/dmeventd/Makefile.in
index 948d9088..fa51bd53 100644
--- a/daemons/dmeventd/Makefile.in
+++ b/daemons/dmeventd/Makefile.in
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2005-2007 Red Hat, Inc. All rights reserved.
+# Copyright (C) 2005-2010 Red Hat, Inc. All rights reserved.
#
# This file is part of the device-mapper userspace tools.
#
@@ -43,12 +43,16 @@ else
VERSIONED_SHLIB = $(LIB_SHARED).$(LIB_VERSION)
endif
-CLEAN_TARGETS = dmeventd.o dmeventd.static dmeventd.gcda dmeventd.gcno
+CLEAN_TARGETS = dmeventd.static $(LIB_NAME).a
ifneq ($(MAKECMDGOALS),device-mapper)
SUBDIRS+=plugins
endif
+CFLOW_LIST = $(SOURCES)
+CFLOW_LIST_TARGET = $(LIB_NAME).cflow
+CFLOW_TARGET = dmeventd
+
include $(top_builddir)/make.tmpl
all: device-mapper
@@ -72,6 +76,15 @@ ifeq ("@PKGCONFIG@", "yes")
INSTALL_LIB_TARGETS += install_pkgconfig
endif
+ifneq ("$(CFLOW_CMD)", "")
+CFLOW_SOURCES = $(addprefix $(srcdir)/, $(SOURCES))
+-include $(top_builddir)/libdm/libdevmapper.cflow
+-include $(top_builddir)/lib/liblvm-internal.cflow
+-include $(top_builddir)/lib/liblvm2cmd.cflow
+-include $(top_builddir)/daemons/dmeventd/$(LIB_NAME).cflow
+-include $(top_builddir)/daemons/dmeventd/plugins/mirror/$(LIB_NAME)-lvm2mirror.cflow
+endif
+
install_include:
$(INSTALL) -D $(OWNER) $(GROUP) -m 444 $(srcdir)/libdevmapper-event.h \
$(includedir)/libdevmapper-event.h