]> sourceware.org Git - lvm2.git/blob - Makefile.in
Right, a simple build (without options) is working again.
[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 ("@INTL@", "yes")
22 SUBDIRS += po
23 endif
24
25 SUBDIRS += lib tools daemons libdm
26
27 ifeq ($(MAKECMDGOALS),distclean)
28 SUBDIRS += daemons/clvmd \
29 daemons/dmeventd/plugins \
30 lib/format1 \
31 lib/format_pool \
32 lib/locking \
33 lib/mirror \
34 lib/snapshot \
35 test \
36 po
37 DISTCLEAN_TARGETS += lib/misc/configure.h
38 DISTCLEAN_DIRS += lcov_reports*
39 endif
40
41 include make.tmpl
42
43 libdm: include
44 lib: libdm
45 daemons: lib
46 tools: lib
47 po: tools daemons
48
49 libdm.device-mapper: include.device-mapper
50 tools.device-mapper: libdm.device-mapper
51 device-mapper: tools.device-mapper
52
53 ifeq ("@INTL@", "yes")
54 lib.pofile: include.pofile
55 tools.pofile: lib.pofile
56 daemons.pofile: lib.pofile
57 po.pofile: tools.pofile daemons.pofile
58 pofile: po.pofile
59 endif
60
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
71
72 check: all
73 $(MAKE) -C test all
74
75 ifneq ("@LCOV@", "")
76 .PHONY: lcov-reset lcov lcov-dated
77
78 ifeq ($(MAKECMDGOALS),lcov-dated)
79 LCOV_REPORTS_DIR=$(top_srcdir)/lcov_reports-$(shell date +%Y%m%d%k%M%S)
80 else
81 LCOV_REPORTS_DIR=$(top_srcdir)/lcov_reports
82 endif
83
84 lcov-reset:
85 $(LCOV) -d $(top_srcdir)/dmeventd --zerocounters
86 $(LCOV) -d $(top_srcdir)/lib --zerocounters
87 $(LCOV) -d $(top_srcdir)/tools --zerocounters
88
89 lcov: all
90 $(RM) -rf $(LCOV_REPORTS_DIR)
91 $(MKDIR_P) $(LCOV_REPORTS_DIR)
92 $(LCOV) -b $(top_srcdir)/lib -d $(top_srcdir)/lib -c -o $(LCOV_REPORTS_DIR)/lib.info
93 $(LCOV) -b $(top_srcdir)/tools -d $(top_srcdir)/tools -c -o $(LCOV_REPORTS_DIR)/tools.info
94 DMEVENTD_INFO="$(LCOV_REPORTS_DIR)/dmeventd.info" ;\
95 DMEVENTD_INFO_A="-a $$DMEVENTDINFO" ;\
96 $(LCOV) -b $(top_srcdir)/dmeventd -d $(top_srcdir)/dmeventd -c -o $$DMEVENTD_INFO || DMEVENTD_INFO_A="" ;\
97 $(LCOV) $$DMEVENTD_INFO_A -a $(LCOV_REPORTS_DIR)/lib.info \
98 -a $(LCOV_REPORTS_DIR)/tools.info \
99 -o $(LCOV_REPORTS_DIR)/lvm.info
100 ifneq ("@GENHTML@", "")
101 $(GENHTML) -o $(LCOV_REPORTS_DIR) -p $(top_srcdir) $(LCOV_REPORTS_DIR)/lvm.info
102 endif
103
104 lcov-dated: lcov
105
106 endif
This page took 0.041648 seconds and 6 git commands to generate.