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