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.
2008-06-12 13:48:45 +04:00
# Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
2001-09-21 16:37:43 +04:00
#
2007-09-21 14:16:45 +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
2009-07-31 15:49:53 +04:00
i f e q ( "@UDEV_RULES@" , "yes" )
SUBDIRS += udev
e n d i f
2004-02-14 01:56:45 +03:00
i f e q ( "@INTL@" , "yes" )
SUBDIRS += po
e n d i f
2009-05-22 18:44:59 +04:00
SUBDIRS += lib tools daemons libdm
i f e q ( "@APPLIB@" , "yes" )
SUBDIRS += liblvm
e n d i f
2001-09-21 16:37:43 +04:00
2001-12-11 19:26:34 +03:00
i f e q ( $( MAKECMDGOALS ) , d i s t c l e a n )
2004-06-24 12:02:38 +04:00
SUBDIRS += daemons/clvmd \
2009-08-13 20:34:07 +04:00
daemons/clogd \
2008-11-01 01:29:44 +03:00
daemons/dmeventd/plugins \
2009-03-16 21:28:04 +03:00
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 \
2009-09-01 22:11:14 +04:00
liblvm \
udev \
2009-03-16 21:28:04 +03:00
test/api \
2008-06-12 13:48:45 +04:00
test \
po
2009-03-16 21:28:04 +03:00
DISTCLEAN_TARGETS += lib/misc/configure.h lib/misc/lvm-version.h
2008-06-27 23:24:17 +04:00
DISTCLEAN_DIRS += lcov_reports*
2001-12-11 19:26:34 +03:00
e n d i f
2001-09-21 16:37:43 +04:00
i n c l u d e m a k e . t m p l
2008-11-01 05:19:19 +03:00
libdm : include
lib : libdm
2009-03-06 19:19:52 +03:00
liblvm : lib
2008-11-18 16:16:03 +03:00
daemons : lib tools
2009-05-22 18:44:59 +04:00
tools : lib device -mapper
2008-11-01 01:29:44 +03:00
po : tools daemons
2002-01-21 19:02:55 +03:00
2008-11-04 01:14:30 +03:00
libdm.device-mapper : include .device -mapper
2008-11-04 02:01:21 +03:00
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
i f e q ( "@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
e n d i f
2002-01-21 19:02:55 +03:00
2006-04-19 19:33:07 +04:00
i f n e q ( "@CFLOW_CMD@" , "" )
tools.cflow : lib .cflow
cflow : tools .cflow
e n d i f
i f n e q ( "@CSCOPE_CMD@" , "" )
cscope.out : tools
@CSCOPE_CMD@ -b -R
all : cscope .out
e n d i f
2007-09-18 18:00:42 +04:00
check : all
$( MAKE) -C test all
2008-06-27 19:35:09 +04:00
i f n e q ( "@LCOV@" , "" )
2008-06-27 23:24:17 +04:00
.PHONY : lcov -reset lcov lcov -dated
2008-06-27 19:35:09 +04:00
2008-06-27 23:24:17 +04:00
i f e q ( $( MAKECMDGOALS ) , l c o v - d a t e d )
LCOV_REPORTS_DIR = $( top_srcdir) /lcov_reports-$( shell date +%Y%m%d%k%M%S)
e l s e
LCOV_REPORTS_DIR = $( top_srcdir) /lcov_reports
e n d i f
2008-06-27 19:35:09 +04:00
2008-06-27 23:24:17 +04:00
lcov-reset :
2008-06-27 19:35:09 +04:00
$( LCOV) -d $( top_srcdir) /dmeventd --zerocounters
2008-11-10 17:04:12 +03:00
$( LCOV) -d $( top_srcdir) /libdm --zerocounters
2008-06-27 19:35:09 +04:00
$( 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
2008-06-27 19:35:09 +04:00
i f n e q ( "@GENHTML@" , "" )
2008-06-27 23:24:17 +04:00
$( GENHTML) -o $( LCOV_REPORTS_DIR) -p $( top_srcdir) $( LCOV_REPORTS_DIR) /lvm.info
2008-06-27 19:35:09 +04:00
e n d i f
2008-06-27 23:24:17 +04:00
lcov-dated : lcov
2008-06-27 19:35:09 +04:00
e n d i f