]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | # |
6606c3ae | 2 | # Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. |
e0a728aa | 3 | # Copyright (C) 2004-2008 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 | |
15 | srcdir = @srcdir@ | |
16 | top_srcdir = @top_srcdir@ | |
db8b5af9 | 17 | top_builddir = @top_builddir@ |
795ca3e5 AK |
18 | VPATH = @srcdir@ |
19 | ||
4eee5764 | 20 | SUBDIRS = doc include man scripts |
69792976 | 21 | |
5d518f1f AK |
22 | ifeq ("@UDEV_RULES@", "yes") |
23 | SUBDIRS += udev | |
24 | endif | |
25 | ||
69792976 AK |
26 | ifeq ("@INTL@", "yes") |
27 | SUBDIRS += po | |
28 | endif | |
29 | ||
572fefeb AK |
30 | SUBDIRS += lib tools daemons libdm |
31 | ||
32 | ifeq ("@APPLIB@", "yes") | |
33 | SUBDIRS += liblvm | |
34 | endif | |
795ca3e5 | 35 | |
5b82db9a | 36 | ifeq ($(MAKECMDGOALS),distclean) |
b7be589e ZK |
37 | SUBDIRS = doc include man scripts \ |
38 | lib tools daemons libdm \ | |
39 | udev po liblvm test/api test | |
5556819a | 40 | DISTCLEAN_DIRS += lcov_reports* |
5b82db9a AK |
41 | endif |
42 | ||
795ca3e5 AK |
43 | include make.tmpl |
44 | ||
0782ad50 AK |
45 | libdm: include |
46 | lib: libdm | |
e0c64c6c | 47 | liblvm: lib |
98cd0c14 | 48 | daemons: lib tools |
572fefeb | 49 | tools: lib device-mapper |
b7edb5bf | 50 | po: tools daemons |
751acb38 | 51 | |
2c44337b | 52 | libdm.device-mapper: include.device-mapper |
d4b9af44 | 53 | daemons.device-mapper: libdm.device-mapper |
0782ad50 | 54 | tools.device-mapper: libdm.device-mapper |
a479de2e | 55 | device-mapper: tools.device-mapper daemons.device-mapper man.device-mapper |
0782ad50 | 56 | |
69792976 AK |
57 | ifeq ("@INTL@", "yes") |
58 | lib.pofile: include.pofile | |
59 | tools.pofile: lib.pofile | |
d3c8211f | 60 | daemons.pofile: lib.pofile |
b7edb5bf | 61 | po.pofile: tools.pofile daemons.pofile |
69792976 AK |
62 | pofile: po.pofile |
63 | endif | |
751acb38 | 64 | |
b41f5924 ZK |
65 | ifneq ("$(CFLOW_CMD)", "") |
66 | tools.cflow: libdm.cflow lib.cflow | |
67 | daemons.cflow: tools.cflow | |
68 | cflow: include.cflow | |
8a2fc586 AK |
69 | endif |
70 | ||
71 | ifneq ("@CSCOPE_CMD@", "") | |
08db4eeb ZK |
72 | cscope.out: |
73 | @CSCOPE_CMD@ -b -R -s$(top_srcdir) | |
8a2fc586 AK |
74 | all: cscope.out |
75 | endif | |
08db4eeb | 76 | DISTCLEAN_TARGETS += cscope.out |
f0f8fbc6 JM |
77 | |
78 | check: all | |
79 | $(MAKE) -C test all | |
fddafd51 | 80 | |
a6fd0319 | 81 | ifneq ("$(LCOV)", "") |
5556819a | 82 | .PHONY: lcov-reset lcov lcov-dated |
fddafd51 | 83 | |
5556819a AK |
84 | ifeq ($(MAKECMDGOALS),lcov-dated) |
85 | LCOV_REPORTS_DIR=$(top_srcdir)/lcov_reports-$(shell date +%Y%m%d%k%M%S) | |
86 | else | |
87 | LCOV_REPORTS_DIR=$(top_srcdir)/lcov_reports | |
88 | endif | |
fddafd51 | 89 | |
5556819a | 90 | lcov-reset: |
fddafd51 | 91 | $(LCOV) -d $(top_srcdir)/dmeventd --zerocounters |
8d514d66 | 92 | $(LCOV) -d $(top_srcdir)/libdm --zerocounters |
fddafd51 ZK |
93 | $(LCOV) -d $(top_srcdir)/lib --zerocounters |
94 | $(LCOV) -d $(top_srcdir)/tools --zerocounters | |
95 | ||
5556819a AK |
96 | lcov: all |
97 | $(RM) -rf $(LCOV_REPORTS_DIR) | |
98 | $(MKDIR_P) $(LCOV_REPORTS_DIR) | |
3545e55a | 99 | $(LCOV) -b $(top_srcdir)/libdm -d $(top_srcdir)/libdm -c -o $(LCOV_REPORTS_DIR)/libdm.info |
5556819a AK |
100 | $(LCOV) -b $(top_srcdir)/lib -d $(top_srcdir)/lib -c -o $(LCOV_REPORTS_DIR)/lib.info |
101 | $(LCOV) -b $(top_srcdir)/tools -d $(top_srcdir)/tools -c -o $(LCOV_REPORTS_DIR)/tools.info | |
102 | DMEVENTD_INFO="$(LCOV_REPORTS_DIR)/dmeventd.info" ;\ | |
103 | DMEVENTD_INFO_A="-a $$DMEVENTDINFO" ;\ | |
104 | $(LCOV) -b $(top_srcdir)/dmeventd -d $(top_srcdir)/dmeventd -c -o $$DMEVENTD_INFO || DMEVENTD_INFO_A="" ;\ | |
105 | $(LCOV) $$DMEVENTD_INFO_A -a $(LCOV_REPORTS_DIR)/lib.info \ | |
8d514d66 | 106 | -a $(LCOV_REPORTS_DIR)/libdm.info \ |
5556819a AK |
107 | -a $(LCOV_REPORTS_DIR)/tools.info \ |
108 | -o $(LCOV_REPORTS_DIR)/lvm.info | |
a6fd0319 | 109 | ifneq ("$(GENHTML)", "") |
5556819a | 110 | $(GENHTML) -o $(LCOV_REPORTS_DIR) -p $(top_srcdir) $(LCOV_REPORTS_DIR)/lvm.info |
fddafd51 ZK |
111 | endif |
112 | ||
5556819a | 113 | lcov-dated: lcov |
fddafd51 ZK |
114 | |
115 | endif |