]> sourceware.org Git - lvm2.git/blame - Makefile.in
Added generation of the versioned libdevmapper-event.so for LVM's test
[lvm2.git] / Makefile.in
CommitLineData
795ca3e5 1#
6606c3ae 2# Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
e0a728aa 3# Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
795ca3e5 4#
7f8f8bfa 5# This file is part of LVM2.
795ca3e5 6#
6606c3ae
AK
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.
795ca3e5 10#
6606c3ae
AK
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
795ca3e5
AK
14
15srcdir = @srcdir@
16top_srcdir = @top_srcdir@
17VPATH = @srcdir@
18
4eee5764 19SUBDIRS = doc include man scripts
69792976
AK
20
21ifeq ("@INTL@", "yes")
22 SUBDIRS += po
23endif
24
d3c8211f 25SUBDIRS += lib tools daemons
795ca3e5 26
06f62ad1
AK
27ifeq ("@DMEVENTD@", "yes")
28 SUBDIRS += dmeventd
29endif
30
5b82db9a 31ifeq ($(MAKECMDGOALS),distclean)
d3c8211f 32 SUBDIRS += daemons/clvmd \
06f62ad1 33 dmeventd \
d3c8211f 34 lib/format1 \
d8ac0fbc 35 lib/format_pool \
d3c8211f 36 lib/locking \
4922197a
AK
37 lib/mirror \
38 lib/snapshot \
e0a728aa
JM
39 test \
40 po
aba30ebc 41 DISTCLEAN_TARGETS += lib/misc/configure.h
5b82db9a
AK
42endif
43
795ca3e5
AK
44include make.tmpl
45
59376640 46daemons: lib
751acb38 47lib: include
69792976 48tools: lib
06f62ad1
AK
49dmeventd: tools
50po: tools daemons dmeventd
751acb38 51
69792976
AK
52ifeq ("@INTL@", "yes")
53lib.pofile: include.pofile
54tools.pofile: lib.pofile
d3c8211f 55daemons.pofile: lib.pofile
06f62ad1
AK
56dmeventd.pofile: tools.pofile
57po.pofile: tools.pofile daemons.pofile dmeventd.pofile
69792976
AK
58pofile: po.pofile
59endif
751acb38 60
8a2fc586
AK
61ifneq ("@CFLOW_CMD@", "")
62tools.cflow: lib.cflow
63cflow: tools.cflow
64endif
65
66ifneq ("@CSCOPE_CMD@", "")
67cscope.out: tools
68 @CSCOPE_CMD@ -b -R
69all: cscope.out
70endif
f0f8fbc6
JM
71
72check: all
73 $(MAKE) -C test all
fddafd51
ZK
74
75ifneq ("@LCOV@", "")
76
77CLEAN_DIRTARGETS += $(top_srcdir)/covhtml*
78CLEAN_TARGETS += $(shell find $(top_srcdir) -name '*.gcda' -o -name '*.gcno')
79
80cov-reset:
81 $(LCOV) -d $(top_srcdir)/dmeventd --zerocounters
82 $(LCOV) -d $(top_srcdir)/lib --zerocounters
83 $(LCOV) -d $(top_srcdir)/tools --zerocounters
84
85_cov-common:
86 $(RM) -rf $(_INTERNAL_COVDIR)
87 $(MKDIR_P) $(_INTERNAL_COVDIR)
88 $(LCOV) -b $(top_srcdir)/lib -d $(top_srcdir)/lib -c -o $(_INTERNAL_COVDIR)/lib.info
89 $(LCOV) -b $(top_srcdir)/tools -d $(top_srcdir)/tools -c -o $(_INTERNAL_COVDIR)/tools.info
90 DMEVENTDINFO="$(_INTERNAL_COVDIR)/dmeventd.info" ;\
91 ADMEVENTDINFO="-a $$DMEVENTDINFO" ;\
92 $(LCOV) -b $(top_srcdir)/dmeventd -d $(top_srcdir)/dmeventd -c -o $$DMEVENTDINFO || ADMEVENTDINFO="" ;\
93 $(LCOV) $$ADMEVENTDINFO -a $(_INTERNAL_COVDIR)/lib.info \
94 -a $(_INTERNAL_COVDIR)/tools.info \
95 -o $(_INTERNAL_COVDIR)/lvm.info
96ifneq ("@GENHTML@", "")
97 $(GENHTML) -o $(_INTERNAL_COVDIR) -p $(top_srcdir) $(_INTERNAL_COVDIR)/lvm.info
98endif
99
100cov: _INTERNAL_COVDIR=$(top_srcdir)/covhtml
101cov: _cov-common
102
103covd: _INTERNAL_COVDIR=$(top_srcdir)/covhtml-$(shell date +%F-%k-%M-%S)
104covd: _cov-common
105
106endif
This page took 0.05072 seconds and 5 git commands to generate.