]> sourceware.org Git - lvm2.git/blame - Makefile.in
Fix for bug 614164: No check for existing name when splitting mirror
[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
5b82db9a 35ifeq ($(MAKECMDGOALS),distclean)
b7be589e
ZK
36 SUBDIRS = doc include man scripts \
37 lib tools daemons libdm \
38 udev po liblvm test/api test
5b82db9a 39endif
e83968fa
ZK
40DISTCLEAN_DIRS += lcov_reports*
41DISTCLEAN_TARGETS += config.cache config.log config.status make.tmpl
5b82db9a 42
795ca3e5
AK
43include make.tmpl
44
0782ad50
AK
45libdm: include
46lib: libdm
e0c64c6c 47liblvm: lib
98cd0c14 48daemons: lib tools
572fefeb 49tools: lib device-mapper
b7edb5bf 50po: tools daemons
751acb38 51
2c44337b 52libdm.device-mapper: include.device-mapper
d4b9af44 53daemons.device-mapper: libdm.device-mapper
0782ad50 54tools.device-mapper: libdm.device-mapper
a479de2e 55device-mapper: tools.device-mapper daemons.device-mapper man.device-mapper
0782ad50 56
69792976
AK
57ifeq ("@INTL@", "yes")
58lib.pofile: include.pofile
59tools.pofile: lib.pofile
d3c8211f 60daemons.pofile: lib.pofile
b7edb5bf 61po.pofile: tools.pofile daemons.pofile
69792976
AK
62pofile: po.pofile
63endif
751acb38 64
b41f5924
ZK
65ifneq ("$(CFLOW_CMD)", "")
66tools.cflow: libdm.cflow lib.cflow
67daemons.cflow: tools.cflow
68cflow: include.cflow
8a2fc586
AK
69endif
70
71ifneq ("@CSCOPE_CMD@", "")
08db4eeb
ZK
72cscope.out:
73 @CSCOPE_CMD@ -b -R -s$(top_srcdir)
8a2fc586
AK
74all: cscope.out
75endif
08db4eeb 76DISTCLEAN_TARGETS += cscope.out
f0f8fbc6 77
a2263de0
PR
78check check_cluster check_local: all
79 $(MAKE) -C test $(@)
fddafd51 80
3399ae32
AK
81install_system_dirs:
82 $(INSTALL_ROOT_DIR) $(DESTDIR)$(DEFAULT_SYS_DIR)
83 $(INSTALL_ROOT_DIR) $(DESTDIR)$(DEFAULT_ARCHIVE_DIR)
84 $(INSTALL_ROOT_DIR) $(DESTDIR)$(DEFAULT_BACKUP_DIR)
85 $(INSTALL_ROOT_DIR) $(DESTDIR)$(DEFAULT_CACHE_DIR)
86 $(INSTALL_ROOT_DIR) $(DESTDIR)$(DEFAULT_LOCK_DIR)
87 $(INSTALL_ROOT_DATA) /dev/null $(DESTDIR)$(DEFAULT_CACHE_DIR)/.cache
88
3e730d47
AK
89install_initscripts:
90 $(MAKE) -C scripts install_initscripts
91
6a27e819
ZK
92LCOV_TRACES = libdm.info lib.info tools.info \
93 daemons/dmeventd.info daemons/clvmd.info
94CLEAN_TARGETS += $(LCOV_TRACES)
95
a6fd0319 96ifneq ("$(LCOV)", "")
6a27e819 97.PHONY: lcov-reset lcov lcov-dated $(LCOV_TRACES)
fddafd51 98
5556819a 99ifeq ($(MAKECMDGOALS),lcov-dated)
6a27e819
ZK
100LCOV_REPORTS_DIR := lcov_reports-$(shell date +%Y%m%d%k%M%S)
101lcov-dated: lcov
5556819a 102else
6a27e819 103LCOV_REPORTS_DIR := lcov_reports
5556819a 104endif
fddafd51 105
5556819a 106lcov-reset:
6a27e819
ZK
107 $(LCOV) --zerocounters $(addprefix -d , $(basename $(LCOV_TRACES)))
108
109# maybe use subdirs processing to create tracefiles...
110$(LCOV_TRACES):
111 $(LCOV) -b $(top_srcdir)/$(basename $@) \
112 -d $(basename $@) -c -o - | $(SED) \
113 -e "s/\(dmeventd_lvm.[ch]\)/plugins\/lvm2\/\1/" \
114 -e "s/\(dmeventd_mirror.c\)/plugins\/mirror\/\1/" \
115 -e "s/\(dmeventd_snapshot.c\)/plugins\/snapshot\/\1/" \
116 >$@
fddafd51 117
a6fd0319 118ifneq ("$(GENHTML)", "")
6a27e819
ZK
119lcov: $(LCOV_TRACES)
120 $(RM) -r $(LCOV_REPORTS_DIR)
121 $(MKDIR_P) $(LCOV_REPORTS_DIR)
122 for i in $(LCOV_TRACES); do \
123 test -s $$i && lc="$$lc $$i"; \
124 done; \
fd4728e1 125 test -z "$$lc" || $(GENHTML) -p @abs_top_builddir@ \
6a27e819 126 -o $(LCOV_REPORTS_DIR) $$lc
fddafd51
ZK
127endif
128
fddafd51 129endif
This page took 0.067707 seconds and 5 git commands to generate.