2 # Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
3 # Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
5 # This file is part of LVM2.
7 # This copyrighted material is made available to anyone wishing to use,
8 # modify, copy, or redistribute it subject to the terms and conditions
9 # of the GNU General Public License v.2.
11 # You should have received a copy of the GNU General Public License
12 # along with this program; if not, write to the Free Software Foundation,
13 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 top_srcdir
= @top_srcdir@
19 SUBDIRS
= doc
include man scripts
21 ifeq ("@INTL@", "yes")
25 SUBDIRS
+= lib tools daemons
27 ifeq ("@DMEVENTD@", "yes")
31 ifeq ($(MAKECMDGOALS
),distclean)
32 SUBDIRS
+= daemons
/clvmd \
41 DISTCLEAN_TARGETS
+= lib
/misc
/configure.h
42 DISTCLEAN_DIRS
+= lcov_reports
*
51 po
: tools daemons dmeventd
53 ifeq ("@INTL@", "yes")
54 lib.pofile
: include.pofile
55 tools.pofile
: lib.pofile
56 daemons.pofile
: lib.pofile
57 dmeventd.pofile
: tools.pofile
58 po.pofile
: tools.pofile daemons.pofile dmeventd.pofile
62 ifneq ("@CFLOW_CMD@", "")
63 tools.cflow
: lib.cflow
67 ifneq ("@CSCOPE_CMD@", "")
77 .PHONY
: lcov-reset lcov lcov-dated
79 ifeq ($(MAKECMDGOALS
),lcov-dated
)
80 LCOV_REPORTS_DIR
=$(top_srcdir
)/lcov_reports-
$(shell date
+%Y
%m
%d
%k
%M
%S
)
82 LCOV_REPORTS_DIR
=$(top_srcdir
)/lcov_reports
86 $(LCOV
) -d
$(top_srcdir
)/dmeventd
--zerocounters
87 $(LCOV
) -d
$(top_srcdir
)/lib
--zerocounters
88 $(LCOV
) -d
$(top_srcdir
)/tools
--zerocounters
91 $(RM
) -rf
$(LCOV_REPORTS_DIR
)
92 $(MKDIR_P
) $(LCOV_REPORTS_DIR
)
93 $(LCOV
) -b
$(top_srcdir
)/lib
-d
$(top_srcdir
)/lib
-c
-o
$(LCOV_REPORTS_DIR
)/lib.
info
94 $(LCOV
) -b
$(top_srcdir
)/tools
-d
$(top_srcdir
)/tools
-c
-o
$(LCOV_REPORTS_DIR
)/tools.
info
95 DMEVENTD_INFO
="$(LCOV_REPORTS_DIR)/dmeventd.info" ;\
96 DMEVENTD_INFO_A
="-a $$DMEVENTDINFO" ;\
97 $(LCOV
) -b
$(top_srcdir
)/dmeventd
-d
$(top_srcdir
)/dmeventd
-c
-o
$$DMEVENTD_INFO || DMEVENTD_INFO_A
="" ;\
98 $(LCOV
) $$DMEVENTD_INFO_A -a
$(LCOV_REPORTS_DIR
)/lib.
info \
99 -a
$(LCOV_REPORTS_DIR
)/tools.
info \
100 -o
$(LCOV_REPORTS_DIR
)/lvm.
info
101 ifneq ("@GENHTML@", "")
102 $(GENHTML
) -o
$(LCOV_REPORTS_DIR
) -p
$(top_srcdir
) $(LCOV_REPORTS_DIR
)/lvm.
info