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