]>
Commit | Line | Data |
---|---|---|
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 | |
15 | srcdir = @srcdir@ | |
16 | top_srcdir = @top_srcdir@ | |
17 | VPATH = @srcdir@ | |
18 | ||
4eee5764 | 19 | SUBDIRS = doc include man scripts |
69792976 AK |
20 | |
21 | ifeq ("@INTL@", "yes") | |
22 | SUBDIRS += po | |
23 | endif | |
24 | ||
d3c8211f | 25 | SUBDIRS += lib tools daemons |
795ca3e5 | 26 | |
06f62ad1 AK |
27 | ifeq ("@DMEVENTD@", "yes") |
28 | SUBDIRS += dmeventd | |
29 | endif | |
30 | ||
5b82db9a | 31 | ifeq ($(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 |
42 | endif |
43 | ||
795ca3e5 AK |
44 | include make.tmpl |
45 | ||
59376640 | 46 | daemons: lib |
751acb38 | 47 | lib: include |
69792976 | 48 | tools: lib |
06f62ad1 AK |
49 | dmeventd: tools |
50 | po: tools daemons dmeventd | |
751acb38 | 51 | |
69792976 AK |
52 | ifeq ("@INTL@", "yes") |
53 | lib.pofile: include.pofile | |
54 | tools.pofile: lib.pofile | |
d3c8211f | 55 | daemons.pofile: lib.pofile |
06f62ad1 AK |
56 | dmeventd.pofile: tools.pofile |
57 | po.pofile: tools.pofile daemons.pofile dmeventd.pofile | |
69792976 AK |
58 | pofile: po.pofile |
59 | endif | |
751acb38 | 60 | |
8a2fc586 AK |
61 | ifneq ("@CFLOW_CMD@", "") |
62 | tools.cflow: lib.cflow | |
63 | cflow: tools.cflow | |
64 | endif | |
65 | ||
66 | ifneq ("@CSCOPE_CMD@", "") | |
67 | cscope.out: tools | |
68 | @CSCOPE_CMD@ -b -R | |
69 | all: cscope.out | |
70 | endif | |
f0f8fbc6 JM |
71 | |
72 | check: all | |
73 | $(MAKE) -C test all | |
fddafd51 ZK |
74 | |
75 | ifneq ("@LCOV@", "") | |
76 | ||
77 | CLEAN_DIRTARGETS += $(top_srcdir)/covhtml* | |
78 | CLEAN_TARGETS += $(shell find $(top_srcdir) -name '*.gcda' -o -name '*.gcno') | |
79 | ||
80 | cov-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 | |
96 | ifneq ("@GENHTML@", "") | |
97 | $(GENHTML) -o $(_INTERNAL_COVDIR) -p $(top_srcdir) $(_INTERNAL_COVDIR)/lvm.info | |
98 | endif | |
99 | ||
100 | cov: _INTERNAL_COVDIR=$(top_srcdir)/covhtml | |
101 | cov: _cov-common | |
102 | ||
103 | covd: _INTERNAL_COVDIR=$(top_srcdir)/covhtml-$(shell date +%F-%k-%M-%S) | |
104 | covd: _cov-common | |
105 | ||
106 | endif |