]> sourceware.org Git - lvm2.git/blame - Makefile.in
more fixes
[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
0782ad50 25SUBDIRS += lib tools daemons libdm
795ca3e5 26
5b82db9a 27ifeq ($(MAKECMDGOALS),distclean)
d3c8211f 28 SUBDIRS += daemons/clvmd \
b7edb5bf 29 daemons/dmeventd/plugins \
d3c8211f 30 lib/format1 \
d8ac0fbc 31 lib/format_pool \
d3c8211f 32 lib/locking \
4922197a
AK
33 lib/mirror \
34 lib/snapshot \
e0a728aa
JM
35 test \
36 po
aba30ebc 37 DISTCLEAN_TARGETS += lib/misc/configure.h
5556819a 38 DISTCLEAN_DIRS += lcov_reports*
5b82db9a
AK
39endif
40
795ca3e5
AK
41include make.tmpl
42
0782ad50
AK
43libdm: include
44lib: libdm
59376640 45daemons: lib
69792976 46tools: lib
b7edb5bf 47po: tools daemons
751acb38 48
2c44337b 49libdm.device-mapper: include.device-mapper
d4b9af44 50daemons.device-mapper: libdm.device-mapper
0782ad50 51tools.device-mapper: libdm.device-mapper
d4b9af44 52device-mapper: tools.device-mapper daemons.device-mapper
0782ad50 53
69792976
AK
54ifeq ("@INTL@", "yes")
55lib.pofile: include.pofile
56tools.pofile: lib.pofile
d3c8211f 57daemons.pofile: lib.pofile
b7edb5bf 58po.pofile: tools.pofile daemons.pofile
69792976
AK
59pofile: po.pofile
60endif
751acb38 61
8a2fc586
AK
62ifneq ("@CFLOW_CMD@", "")
63tools.cflow: lib.cflow
64cflow: tools.cflow
65endif
66
67ifneq ("@CSCOPE_CMD@", "")
68cscope.out: tools
69 @CSCOPE_CMD@ -b -R
70all: cscope.out
71endif
f0f8fbc6
JM
72
73check: all
74 $(MAKE) -C test all
fddafd51
ZK
75
76ifneq ("@LCOV@", "")
5556819a 77.PHONY: lcov-reset lcov lcov-dated
fddafd51 78
5556819a
AK
79ifeq ($(MAKECMDGOALS),lcov-dated)
80LCOV_REPORTS_DIR=$(top_srcdir)/lcov_reports-$(shell date +%Y%m%d%k%M%S)
81else
82LCOV_REPORTS_DIR=$(top_srcdir)/lcov_reports
83endif
fddafd51 84
5556819a 85lcov-reset:
fddafd51
ZK
86 $(LCOV) -d $(top_srcdir)/dmeventd --zerocounters
87 $(LCOV) -d $(top_srcdir)/lib --zerocounters
88 $(LCOV) -d $(top_srcdir)/tools --zerocounters
89
5556819a
AK
90lcov: all
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
fddafd51 101ifneq ("@GENHTML@", "")
5556819a 102 $(GENHTML) -o $(LCOV_REPORTS_DIR) -p $(top_srcdir) $(LCOV_REPORTS_DIR)/lvm.info
fddafd51
ZK
103endif
104
5556819a 105lcov-dated: lcov
fddafd51
ZK
106
107endif
This page took 0.049658 seconds and 5 git commands to generate.