]> sourceware.org Git - lvm2.git/blame - Makefile.in
Refer to details of snapshot of raid problem.
[lvm2.git] / Makefile.in
CommitLineData
795ca3e5 1#
6606c3ae 2# Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
4ef2bf27 3# Copyright (C) 2004-2010 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 18
4eee5764 19SUBDIRS = doc include man scripts
69792976 20
5d518f1f
AK
21ifeq ("@UDEV_RULES@", "yes")
22 SUBDIRS += udev
23endif
24
69792976
AK
25ifeq ("@INTL@", "yes")
26 SUBDIRS += po
27endif
28
572fefeb
AK
29SUBDIRS += lib tools daemons libdm
30
31ifeq ("@APPLIB@", "yes")
32 SUBDIRS += liblvm
33endif
795ca3e5 34
7126d8c2
AK
35ifeq ("@BUILD_LVMETAD@", "yes")
36 SUBDIRS += libdaemon
37endif
38
6bbbcf42
AK
39ifeq ("@VERITYSETUP@", "yes")
40 SUBDIRS += verity
41endif
42
40dbaac8 43# FIXME Should use intermediate Makefiles here!
5b82db9a 44ifeq ($(MAKECMDGOALS),distclean)
b7be589e 45 SUBDIRS = doc include man scripts \
7126d8c2 46 libdaemon lib tools daemons libdm \
4b42d7ae 47 udev po liblvm test \
6bbbcf42 48 unit-tests/datastruct unit-tests/mm unit-tests/regex verity
5b82db9a 49endif
e83968fa
ZK
50DISTCLEAN_DIRS += lcov_reports*
51DISTCLEAN_TARGETS += config.cache config.log config.status make.tmpl
5b82db9a 52
795ca3e5
AK
53include make.tmpl
54
0782ad50 55libdm: include
7126d8c2 56lib: libdm libdaemon
e0c64c6c 57liblvm: lib
7126d8c2
AK
58daemons: lib libdaemon tools
59tools: lib libdaemon device-mapper
6bbbcf42 60verity: libdm
b7edb5bf 61po: tools daemons
751acb38 62
0dfae7e4 63lib.device-mapper: include.device-mapper
2c44337b 64libdm.device-mapper: include.device-mapper
7622f312 65liblvm.device-mapper: include.device-mapper
d4b9af44 66daemons.device-mapper: libdm.device-mapper
0782ad50 67tools.device-mapper: libdm.device-mapper
a479de2e 68device-mapper: tools.device-mapper daemons.device-mapper man.device-mapper
0782ad50 69
69792976
AK
70ifeq ("@INTL@", "yes")
71lib.pofile: include.pofile
72tools.pofile: lib.pofile
d3c8211f 73daemons.pofile: lib.pofile
b7edb5bf 74po.pofile: tools.pofile daemons.pofile
69792976
AK
75pofile: po.pofile
76endif
751acb38 77
b41f5924
ZK
78ifneq ("$(CFLOW_CMD)", "")
79tools.cflow: libdm.cflow lib.cflow
80daemons.cflow: tools.cflow
81cflow: include.cflow
8a2fc586
AK
82endif
83
84ifneq ("@CSCOPE_CMD@", "")
08db4eeb
ZK
85cscope.out:
86 @CSCOPE_CMD@ -b -R -s$(top_srcdir)
8a2fc586
AK
87all: cscope.out
88endif
08db4eeb 89DISTCLEAN_TARGETS += cscope.out
f0f8fbc6 90
5ae6946e 91check check_cluster check_local check_lvmetad unit: all
a2263de0 92 $(MAKE) -C test $(@)
fddafd51 93
3399ae32 94install_system_dirs:
9cd9dab0 95 $(INSTALL_DIR) $(DESTDIR)$(DEFAULT_SYS_DIR)
3399ae32
AK
96 $(INSTALL_ROOT_DIR) $(DESTDIR)$(DEFAULT_ARCHIVE_DIR)
97 $(INSTALL_ROOT_DIR) $(DESTDIR)$(DEFAULT_BACKUP_DIR)
98 $(INSTALL_ROOT_DIR) $(DESTDIR)$(DEFAULT_CACHE_DIR)
99 $(INSTALL_ROOT_DIR) $(DESTDIR)$(DEFAULT_LOCK_DIR)
8bae0a1e 100 $(INSTALL_ROOT_DIR) $(DESTDIR)$(DEFAULT_RUN_DIR)
3399ae32
AK
101 $(INSTALL_ROOT_DATA) /dev/null $(DESTDIR)$(DEFAULT_CACHE_DIR)/.cache
102
3e730d47
AK
103install_initscripts:
104 $(MAKE) -C scripts install_initscripts
105
395d204d
PR
106install_systemd_units:
107 $(MAKE) -C scripts install_systemd_units
108
4417a8bd
PR
109install_tmpfiles_configuration:
110 $(MAKE) -C scripts install_tmpfiles_configuration
111
4007e0d1
AK
112install_verity:
113 $(MAKE) -C verity install_verity
114 $(MAKE) -C man install_verity
115
6a27e819
ZK
116LCOV_TRACES = libdm.info lib.info tools.info \
117 daemons/dmeventd.info daemons/clvmd.info
118CLEAN_TARGETS += $(LCOV_TRACES)
119
a6fd0319 120ifneq ("$(LCOV)", "")
6a27e819 121.PHONY: lcov-reset lcov lcov-dated $(LCOV_TRACES)
fddafd51 122
5556819a 123ifeq ($(MAKECMDGOALS),lcov-dated)
6a27e819
ZK
124LCOV_REPORTS_DIR := lcov_reports-$(shell date +%Y%m%d%k%M%S)
125lcov-dated: lcov
5556819a 126else
6a27e819 127LCOV_REPORTS_DIR := lcov_reports
5556819a 128endif
fddafd51 129
5556819a 130lcov-reset:
6a27e819
ZK
131 $(LCOV) --zerocounters $(addprefix -d , $(basename $(LCOV_TRACES)))
132
133# maybe use subdirs processing to create tracefiles...
134$(LCOV_TRACES):
1d6a2c73
ZK
135 $(LCOV) -b $(basename $@) -d $(basename $@) \
136 --ignore-errors source -c -o - | $(SED) \
6a27e819 137 -e "s/\(dmeventd_lvm.[ch]\)/plugins\/lvm2\/\1/" \
1d6a2c73 138 -e "s/dmeventd_\(mirror\|snapshot\|thin\|raid\)\.c/plugins\/\1\/dmeventd_\1\.c/" \
6a27e819 139 >$@
fddafd51 140
a6fd0319 141ifneq ("$(GENHTML)", "")
6a27e819
ZK
142lcov: $(LCOV_TRACES)
143 $(RM) -r $(LCOV_REPORTS_DIR)
144 $(MKDIR_P) $(LCOV_REPORTS_DIR)
145 for i in $(LCOV_TRACES); do \
146 test -s $$i && lc="$$lc $$i"; \
147 done; \
fd4728e1 148 test -z "$$lc" || $(GENHTML) -p @abs_top_builddir@ \
6a27e819 149 -o $(LCOV_REPORTS_DIR) $$lc
fddafd51
ZK
150endif
151
fddafd51 152endif
1033d120
JT
153
154ifeq ("$(TESTING)", "yes")
155# testing and report generation
156RUBY=ruby1.9 -Ireport-generators/lib -Ireport-generators/test
157
158.PHONEY: unit-test ruby-test test-programs
159
52e1564f 160# FIXME: put dependencies on libdm and liblvm
40dbaac8 161# FIXME: Should be handled by Makefiles in subdirs, not here at top level.
1033d120 162test-programs:
66392e66
JT
163 cd unit-tests/regex && $(MAKE)
164 cd unit-tests/datastruct && $(MAKE)
52e1564f 165 cd unit-tests/mm && $(MAKE)
1033d120
JT
166
167unit-test: test-programs
168 $(RUBY) report-generators/unit_test.rb $(shell find . -name TESTS)
169 $(RUBY) report-generators/title_page.rb
170
171memcheck: test-programs
172 $(RUBY) report-generators/memcheck.rb $(shell find . -name TESTS)
173 $(RUBY) report-generators/title_page.rb
174
175ruby-test:
176 $(RUBY) report-generators/test/ts.rb
7622f312 177endif
This page took 0.08465 seconds and 5 git commands to generate.