]> sourceware.org Git - lvm2.git/blame - Makefile.in
Update distclean target for rename clogd to cmirrord. (2.02.52)
[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 20
5d518f1f
AK
21ifeq ("@UDEV_RULES@", "yes")
22 SUBDIRS += udev
23endif
24
69792976
AK
25ifeq ("@INTL@", "yes")
26 SUBDIRS += po
27endif
28
572fefeb
AK
29SUBDIRS += lib tools daemons libdm
30
31ifeq ("@APPLIB@", "yes")
32 SUBDIRS += liblvm
33endif
795ca3e5 34
5b82db9a 35ifeq ($(MAKECMDGOALS),distclean)
d3c8211f 36 SUBDIRS += daemons/clvmd \
680617f5 37 daemons/cmirrord \
b7edb5bf 38 daemons/dmeventd/plugins \
f5ac9a94 39 daemons/dmeventd \
d3c8211f 40 lib/format1 \
d8ac0fbc 41 lib/format_pool \
d3c8211f 42 lib/locking \
4922197a
AK
43 lib/mirror \
44 lib/snapshot \
ac7d7207
FDN
45 liblvm \
46 udev \
f5ac9a94 47 test/api \
e0a728aa
JM
48 test \
49 po
f5ac9a94 50 DISTCLEAN_TARGETS += lib/misc/configure.h lib/misc/lvm-version.h
5556819a 51 DISTCLEAN_DIRS += lcov_reports*
5b82db9a
AK
52endif
53
795ca3e5
AK
54include make.tmpl
55
0782ad50
AK
56libdm: include
57lib: libdm
e0c64c6c 58liblvm: lib
98cd0c14 59daemons: lib tools
572fefeb 60tools: lib device-mapper
b7edb5bf 61po: tools daemons
751acb38 62
2c44337b 63libdm.device-mapper: include.device-mapper
d4b9af44 64daemons.device-mapper: libdm.device-mapper
0782ad50 65tools.device-mapper: libdm.device-mapper
a479de2e 66device-mapper: tools.device-mapper daemons.device-mapper man.device-mapper
0782ad50 67
69792976
AK
68ifeq ("@INTL@", "yes")
69lib.pofile: include.pofile
70tools.pofile: lib.pofile
d3c8211f 71daemons.pofile: lib.pofile
b7edb5bf 72po.pofile: tools.pofile daemons.pofile
69792976
AK
73pofile: po.pofile
74endif
751acb38 75
8a2fc586
AK
76ifneq ("@CFLOW_CMD@", "")
77tools.cflow: lib.cflow
78cflow: tools.cflow
79endif
80
81ifneq ("@CSCOPE_CMD@", "")
82cscope.out: tools
83 @CSCOPE_CMD@ -b -R
84all: cscope.out
85endif
f0f8fbc6
JM
86
87check: all
88 $(MAKE) -C test all
fddafd51
ZK
89
90ifneq ("@LCOV@", "")
5556819a 91.PHONY: lcov-reset lcov lcov-dated
fddafd51 92
5556819a
AK
93ifeq ($(MAKECMDGOALS),lcov-dated)
94LCOV_REPORTS_DIR=$(top_srcdir)/lcov_reports-$(shell date +%Y%m%d%k%M%S)
95else
96LCOV_REPORTS_DIR=$(top_srcdir)/lcov_reports
97endif
fddafd51 98
5556819a 99lcov-reset:
fddafd51 100 $(LCOV) -d $(top_srcdir)/dmeventd --zerocounters
8d514d66 101 $(LCOV) -d $(top_srcdir)/libdm --zerocounters
fddafd51
ZK
102 $(LCOV) -d $(top_srcdir)/lib --zerocounters
103 $(LCOV) -d $(top_srcdir)/tools --zerocounters
104
5556819a
AK
105lcov: all
106 $(RM) -rf $(LCOV_REPORTS_DIR)
107 $(MKDIR_P) $(LCOV_REPORTS_DIR)
3545e55a 108 $(LCOV) -b $(top_srcdir)/libdm -d $(top_srcdir)/libdm -c -o $(LCOV_REPORTS_DIR)/libdm.info
5556819a
AK
109 $(LCOV) -b $(top_srcdir)/lib -d $(top_srcdir)/lib -c -o $(LCOV_REPORTS_DIR)/lib.info
110 $(LCOV) -b $(top_srcdir)/tools -d $(top_srcdir)/tools -c -o $(LCOV_REPORTS_DIR)/tools.info
111 DMEVENTD_INFO="$(LCOV_REPORTS_DIR)/dmeventd.info" ;\
112 DMEVENTD_INFO_A="-a $$DMEVENTDINFO" ;\
113 $(LCOV) -b $(top_srcdir)/dmeventd -d $(top_srcdir)/dmeventd -c -o $$DMEVENTD_INFO || DMEVENTD_INFO_A="" ;\
114 $(LCOV) $$DMEVENTD_INFO_A -a $(LCOV_REPORTS_DIR)/lib.info \
8d514d66 115 -a $(LCOV_REPORTS_DIR)/libdm.info \
5556819a
AK
116 -a $(LCOV_REPORTS_DIR)/tools.info \
117 -o $(LCOV_REPORTS_DIR)/lvm.info
fddafd51 118ifneq ("@GENHTML@", "")
5556819a 119 $(GENHTML) -o $(LCOV_REPORTS_DIR) -p $(top_srcdir) $(LCOV_REPORTS_DIR)/lvm.info
fddafd51
ZK
120endif
121
5556819a 122lcov-dated: lcov
fddafd51
ZK
123
124endif
This page took 0.05671 seconds and 5 git commands to generate.