1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/Makefile.in

125 lines
3.1 KiB
Makefile
Raw Normal View History

2001-09-21 16:37:43 +04:00
#
2004-03-30 23:35:44 +04:00
# Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
# Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
2001-09-21 16:37:43 +04:00
#
# This file is part of LVM2.
2001-09-21 16:37:43 +04:00
#
2004-03-30 23:35:44 +04:00
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
2001-09-21 16:37:43 +04:00
#
2004-03-30 23:35:44 +04:00
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2001-09-21 16:37:43 +04:00
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
2006-11-20 23:03:26 +03:00
SUBDIRS = doc include man scripts
2004-02-14 01:56:45 +03:00
ifeq ("@UDEV_RULES@", "yes")
SUBDIRS += udev
endif
2004-02-14 01:56:45 +03:00
ifeq ("@INTL@", "yes")
SUBDIRS += po
endif
SUBDIRS += lib tools daemons libdm
ifeq ("@APPLIB@", "yes")
SUBDIRS += liblvm
endif
2001-09-21 16:37:43 +04:00
ifeq ($(MAKECMDGOALS),distclean)
2004-06-24 12:02:38 +04:00
SUBDIRS += daemons/clvmd \
daemons/clogd \
2008-11-01 01:29:44 +03:00
daemons/dmeventd/plugins \
daemons/dmeventd \
2004-06-24 12:02:38 +04:00
lib/format1 \
2004-06-07 23:10:21 +04:00
lib/format_pool \
2004-06-24 12:02:38 +04:00
lib/locking \
2004-05-05 01:25:57 +04:00
lib/mirror \
lib/snapshot \
liblvm \
udev \
test/api \
test \
po
DISTCLEAN_TARGETS += lib/misc/configure.h lib/misc/lvm-version.h
2008-06-27 23:24:17 +04:00
DISTCLEAN_DIRS += lcov_reports*
endif
2001-09-21 16:37:43 +04:00
include make.tmpl
2008-11-01 05:19:19 +03:00
libdm: include
lib: libdm
liblvm: lib
daemons: lib tools
tools: lib device-mapper
2008-11-01 01:29:44 +03:00
po: tools daemons
2002-01-21 19:02:55 +03:00
libdm.device-mapper: include.device-mapper
daemons.device-mapper: libdm.device-mapper
2008-11-01 05:19:19 +03:00
tools.device-mapper: libdm.device-mapper
2008-11-04 18:55:27 +03:00
device-mapper: tools.device-mapper daemons.device-mapper man.device-mapper
2008-11-01 05:19:19 +03:00
2004-02-14 01:56:45 +03:00
ifeq ("@INTL@", "yes")
lib.pofile: include.pofile
tools.pofile: lib.pofile
2004-06-24 12:02:38 +04:00
daemons.pofile: lib.pofile
2008-11-01 01:29:44 +03:00
po.pofile: tools.pofile daemons.pofile
2004-02-14 01:56:45 +03:00
pofile: po.pofile
endif
2002-01-21 19:02:55 +03:00
ifneq ("@CFLOW_CMD@", "")
tools.cflow: lib.cflow
cflow: tools.cflow
endif
ifneq ("@CSCOPE_CMD@", "")
cscope.out: tools
@CSCOPE_CMD@ -b -R
all: cscope.out
endif
check: all
$(MAKE) -C test all
ifneq ("@LCOV@", "")
2008-06-27 23:24:17 +04:00
.PHONY: lcov-reset lcov lcov-dated
2008-06-27 23:24:17 +04:00
ifeq ($(MAKECMDGOALS),lcov-dated)
LCOV_REPORTS_DIR=$(top_srcdir)/lcov_reports-$(shell date +%Y%m%d%k%M%S)
else
LCOV_REPORTS_DIR=$(top_srcdir)/lcov_reports
endif
2008-06-27 23:24:17 +04:00
lcov-reset:
$(LCOV) -d $(top_srcdir)/dmeventd --zerocounters
2008-11-10 17:04:12 +03:00
$(LCOV) -d $(top_srcdir)/libdm --zerocounters
$(LCOV) -d $(top_srcdir)/lib --zerocounters
$(LCOV) -d $(top_srcdir)/tools --zerocounters
2008-06-27 23:24:17 +04:00
lcov: all
$(RM) -rf $(LCOV_REPORTS_DIR)
$(MKDIR_P) $(LCOV_REPORTS_DIR)
2008-11-10 17:04:12 +03:00
$(LCOV) -b ${top_srcdir}/libdm -d $(top_srcdir)/libdm -c -o $(LCOV_REPORTS_DIR)/libdm.info
2008-06-27 23:24:17 +04:00
$(LCOV) -b $(top_srcdir)/lib -d $(top_srcdir)/lib -c -o $(LCOV_REPORTS_DIR)/lib.info
$(LCOV) -b $(top_srcdir)/tools -d $(top_srcdir)/tools -c -o $(LCOV_REPORTS_DIR)/tools.info
DMEVENTD_INFO="$(LCOV_REPORTS_DIR)/dmeventd.info" ;\
DMEVENTD_INFO_A="-a $$DMEVENTDINFO" ;\
$(LCOV) -b $(top_srcdir)/dmeventd -d $(top_srcdir)/dmeventd -c -o $$DMEVENTD_INFO || DMEVENTD_INFO_A="" ;\
$(LCOV) $$DMEVENTD_INFO_A -a $(LCOV_REPORTS_DIR)/lib.info \
2008-11-10 17:04:12 +03:00
-a $(LCOV_REPORTS_DIR)/libdm.info \
2008-06-27 23:24:17 +04:00
-a $(LCOV_REPORTS_DIR)/tools.info \
-o $(LCOV_REPORTS_DIR)/lvm.info
ifneq ("@GENHTML@", "")
2008-06-27 23:24:17 +04:00
$(GENHTML) -o $(LCOV_REPORTS_DIR) -p $(top_srcdir) $(LCOV_REPORTS_DIR)/lvm.info
endif
2008-06-27 23:24:17 +04:00
lcov-dated: lcov
endif