1 1.1 haad # 2 1.1 haad # Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. 3 1.1 haad # Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 4 1.1 haad # 5 1.1 haad # This file is part of LVM2. 6 1.1 haad # 7 1.1 haad # This copyrighted material is made available to anyone wishing to use, 8 1.1 haad # modify, copy, or redistribute it subject to the terms and conditions 9 1.1 haad # of the GNU General Public License v.2. 10 1.1 haad # 11 1.1 haad # You should have received a copy of the GNU General Public License 12 1.1 haad # along with this program; if not, write to the Free Software Foundation, 13 1.1 haad # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 14 1.1 haad 15 1.1 haad srcdir = . 16 1.1 haad top_srcdir = . 17 1.1 haad top_builddir = . 18 1.1 haad 19 1.1 haad 20 1.1 haad SUBDIRS = doc include man scripts 21 1.1 haad 22 1.1 haad ifeq ("no", "yes") 23 1.1 haad SUBDIRS += udev 24 1.1 haad endif 25 1.1 haad 26 1.1 haad ifeq ("no", "yes") 27 1.1 haad SUBDIRS += po 28 1.1 haad endif 29 1.1 haad 30 1.1 haad SUBDIRS += lib tools daemons libdm 31 1.1 haad 32 1.1 haad ifeq ("no", "yes") 33 1.1 haad SUBDIRS += liblvm 34 1.1 haad endif 35 1.1 haad 36 1.1 haad ifeq ($(MAKECMDGOALS),distclean) 37 1.1 haad SUBDIRS += daemons/clvmd \ 38 1.1 haad daemons/cmirrord \ 39 1.1 haad daemons/dmeventd/plugins \ 40 1.1 haad daemons/dmeventd \ 41 1.1 haad lib/format1 \ 42 1.1 haad lib/format_pool \ 43 1.1 haad lib/locking \ 44 1.1 haad lib/mirror \ 45 1.1 haad lib/snapshot \ 46 1.1 haad liblvm \ 47 1.1 haad udev \ 48 1.1 haad test/api \ 49 1.1 haad test \ 50 1.1 haad po 51 1.1 haad DISTCLEAN_TARGETS += lib/misc/configure.h lib/misc/lvm-version.h 52 1.1 haad DISTCLEAN_DIRS += lcov_reports* 53 1.1 haad endif 54 1.1 haad 55 1.1 haad include make.tmpl 56 1.1 haad 57 1.1 haad libdm: include 58 1.1 haad lib: libdm 59 1.1 haad liblvm: lib 60 1.1 haad daemons: lib tools 61 1.1 haad tools: lib device-mapper 62 1.1 haad po: tools daemons 63 1.1 haad 64 1.1 haad libdm.device-mapper: include.device-mapper 65 1.1 haad daemons.device-mapper: libdm.device-mapper 66 1.1 haad tools.device-mapper: libdm.device-mapper 67 1.1 haad device-mapper: tools.device-mapper daemons.device-mapper man.device-mapper 68 1.1 haad 69 1.1 haad ifeq ("no", "yes") 70 1.1 haad lib.pofile: include.pofile 71 1.1 haad tools.pofile: lib.pofile 72 1.1 haad daemons.pofile: lib.pofile 73 1.1 haad po.pofile: tools.pofile daemons.pofile 74 1.1 haad pofile: po.pofile 75 1.1 haad endif 76 1.1 haad 77 1.1 haad ifneq ("", "") 78 1.1 haad tools.cflow: lib.cflow 79 1.1 haad cflow: tools.cflow 80 1.1 haad endif 81 1.1 haad 82 1.1 haad ifneq ("", "") 83 1.1 haad cscope.out: tools 84 1.1 haad -b -R 85 1.1 haad all: cscope.out 86 1.1 haad endif 87 1.1 haad 88 1.1 haad check: all 89 1.1 haad $(MAKE) -C test all 90 1.1 haad 91 1.1 haad ifneq ("", "") 92 1.1 haad .PHONY: lcov-reset lcov lcov-dated 93 1.1 haad 94 1.1 haad ifeq ($(MAKECMDGOALS),lcov-dated) 95 1.1 haad LCOV_REPORTS_DIR=$(top_srcdir)/lcov_reports-$(shell date +%Y%m%d%k%M%S) 96 1.1 haad else 97 1.1 haad LCOV_REPORTS_DIR=$(top_srcdir)/lcov_reports 98 1.1 haad endif 99 1.1 haad 100 1.1 haad lcov-reset: 101 1.1 haad $(LCOV) -d $(top_srcdir)/dmeventd --zerocounters 102 1.1 haad $(LCOV) -d $(top_srcdir)/libdm --zerocounters 103 1.1 haad $(LCOV) -d $(top_srcdir)/lib --zerocounters 104 1.1 haad $(LCOV) -d $(top_srcdir)/tools --zerocounters 105 1.1 haad 106 1.1 haad lcov: all 107 1.1 haad $(RM) -rf $(LCOV_REPORTS_DIR) 108 1.1 haad $(MKDIR_P) $(LCOV_REPORTS_DIR) 109 1.1 haad $(LCOV) -b $(top_srcdir)/libdm -d $(top_srcdir)/libdm -c -o $(LCOV_REPORTS_DIR)/libdm.info 110 1.1 haad $(LCOV) -b $(top_srcdir)/lib -d $(top_srcdir)/lib -c -o $(LCOV_REPORTS_DIR)/lib.info 111 1.1 haad $(LCOV) -b $(top_srcdir)/tools -d $(top_srcdir)/tools -c -o $(LCOV_REPORTS_DIR)/tools.info 112 1.1 haad DMEVENTD_INFO="$(LCOV_REPORTS_DIR)/dmeventd.info" ;\ 113 1.1 haad DMEVENTD_INFO_A="-a $$DMEVENTDINFO" ;\ 114 1.1 haad $(LCOV) -b $(top_srcdir)/dmeventd -d $(top_srcdir)/dmeventd -c -o $$DMEVENTD_INFO || DMEVENTD_INFO_A="" ;\ 115 1.1 haad $(LCOV) $$DMEVENTD_INFO_A -a $(LCOV_REPORTS_DIR)/lib.info \ 116 1.1 haad -a $(LCOV_REPORTS_DIR)/libdm.info \ 117 1.1 haad -a $(LCOV_REPORTS_DIR)/tools.info \ 118 1.1 haad -o $(LCOV_REPORTS_DIR)/lvm.info 119 1.1 haad ifneq ("", "") 120 1.1 haad $(GENHTML) -o $(LCOV_REPORTS_DIR) -p $(top_srcdir) $(LCOV_REPORTS_DIR)/lvm.info 121 1.1 haad endif 122 1.1 haad 123 1.1 haad lcov-dated: lcov 124 1.1 haad 125 1.1 haad endif 126