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