]> sourceware.org Git - lvm2.git/blob - Makefile.in
cluster log daemon (clogd): Add to LVM build system
[lvm2.git] / Makefile.in
1 #
2 # Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
3 # Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
4 #
5 # This file is part of LVM2.
6 #
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.
10 #
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
14
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18
19 SUBDIRS = doc include man scripts
20
21 ifeq ("@UDEV_RULES@", "yes")
22 SUBDIRS += udev
23 endif
24
25 ifeq ("@INTL@", "yes")
26 SUBDIRS += po
27 endif
28
29 SUBDIRS += lib tools daemons libdm
30
31 ifeq ("@APPLIB@", "yes")
32 SUBDIRS += liblvm
33 endif
34
35 ifeq ($(MAKECMDGOALS),distclean)
36 SUBDIRS += daemons/clvmd \
37 daemons/clogd \
38 daemons/dmeventd/plugins \
39 daemons/dmeventd \
40 lib/format1 \
41 lib/format_pool \
42 lib/locking \
43 lib/mirror \
44 lib/snapshot \
45 test/api \
46 test \
47 po
48 DISTCLEAN_TARGETS += lib/misc/configure.h lib/misc/lvm-version.h
49 DISTCLEAN_DIRS += lcov_reports*
50 endif
51
52 include make.tmpl
53
54 libdm: include
55 lib: libdm
56 liblvm: lib
57 daemons: lib tools
58 tools: lib device-mapper
59 po: tools daemons
60
61 libdm.device-mapper: include.device-mapper
62 daemons.device-mapper: libdm.device-mapper
63 tools.device-mapper: libdm.device-mapper
64 device-mapper: tools.device-mapper daemons.device-mapper man.device-mapper
65
66 ifeq ("@INTL@", "yes")
67 lib.pofile: include.pofile
68 tools.pofile: lib.pofile
69 daemons.pofile: lib.pofile
70 po.pofile: tools.pofile daemons.pofile
71 pofile: po.pofile
72 endif
73
74 ifneq ("@CFLOW_CMD@", "")
75 tools.cflow: lib.cflow
76 cflow: tools.cflow
77 endif
78
79 ifneq ("@CSCOPE_CMD@", "")
80 cscope.out: tools
81 @CSCOPE_CMD@ -b -R
82 all: cscope.out
83 endif
84
85 check: all
86 $(MAKE) -C test all
87
88 ifneq ("@LCOV@", "")
89 .PHONY: lcov-reset lcov lcov-dated
90
91 ifeq ($(MAKECMDGOALS),lcov-dated)
92 LCOV_REPORTS_DIR=$(top_srcdir)/lcov_reports-$(shell date +%Y%m%d%k%M%S)
93 else
94 LCOV_REPORTS_DIR=$(top_srcdir)/lcov_reports
95 endif
96
97 lcov-reset:
98 $(LCOV) -d $(top_srcdir)/dmeventd --zerocounters
99 $(LCOV) -d $(top_srcdir)/libdm --zerocounters
100 $(LCOV) -d $(top_srcdir)/lib --zerocounters
101 $(LCOV) -d $(top_srcdir)/tools --zerocounters
102
103 lcov: all
104 $(RM) -rf $(LCOV_REPORTS_DIR)
105 $(MKDIR_P) $(LCOV_REPORTS_DIR)
106 $(LCOV) -b ${top_srcdir}/libdm -d $(top_srcdir)/libdm -c -o $(LCOV_REPORTS_DIR)/libdm.info
107 $(LCOV) -b $(top_srcdir)/lib -d $(top_srcdir)/lib -c -o $(LCOV_REPORTS_DIR)/lib.info
108 $(LCOV) -b $(top_srcdir)/tools -d $(top_srcdir)/tools -c -o $(LCOV_REPORTS_DIR)/tools.info
109 DMEVENTD_INFO="$(LCOV_REPORTS_DIR)/dmeventd.info" ;\
110 DMEVENTD_INFO_A="-a $$DMEVENTDINFO" ;\
111 $(LCOV) -b $(top_srcdir)/dmeventd -d $(top_srcdir)/dmeventd -c -o $$DMEVENTD_INFO || DMEVENTD_INFO_A="" ;\
112 $(LCOV) $$DMEVENTD_INFO_A -a $(LCOV_REPORTS_DIR)/lib.info \
113 -a $(LCOV_REPORTS_DIR)/libdm.info \
114 -a $(LCOV_REPORTS_DIR)/tools.info \
115 -o $(LCOV_REPORTS_DIR)/lvm.info
116 ifneq ("@GENHTML@", "")
117 $(GENHTML) -o $(LCOV_REPORTS_DIR) -p $(top_srcdir) $(LCOV_REPORTS_DIR)/lvm.info
118 endif
119
120 lcov-dated: lcov
121
122 endif
This page took 0.042274 seconds and 6 git commands to generate.