-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
120 lines (95 loc) · 2.73 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
TOPDIR = .
include $(TOPDIR)/Preamble.make
RPM_TOPDIR = $(CURDIR)
RPMBUILD = $(shell /usr/bin/which rpmbuild 2>/dev/null || /usr/bin/which rpm 2>/dev/null || echo /bin/false)
SUSEBUILD = $(shell if test -r /etc/SuSE-release; then echo yes; else echo no; fi)
PYVERSION = $(shell echo $(pyexecdir) | sed -e 's/.*python\([0-9]\.[0-9]\).*/\1/')
ifeq ($(SUSEBUILD),yes)
PYGTK_NAME = python-gtk
CHKCONFIG_DEP = aaa_base
COMPILE_PY = 0
else
PYGTK_NAME = pygtk2
CHKCONFIG_DEP = chkconfig
COMPILE_PY = 1
endif
SUBDIRS = include libtools-internal libo2dlm libo2cb libocfs2 fsck.ocfs2 mkfs.ocfs2 mounted.ocfs2 tunefs.ocfs2 debugfs.ocfs2 o2cb_ctl ocfs2_hb_ctl mount.ocfs2 ocfs2_controld o2image o2info o2monitor extras fswreck patches
ifdef BUILD_OCFS2CONSOLE
SUBDIRS += ocfs2console
endif
SUBDIRS += vendor
PKGCONFIG_SOURCES = \
o2cb.pc.in \
o2dlm.pc.in \
ocfs2.pc.in
PKGCONFIG_FILES = $(patsubst %.pc.in,%.pc,$(PKGCONFIG_SOURCES))
DEBIAN_FILES = \
debian/README.Debian \
debian/changelog \
debian/compat \
debian/control \
debian/copyright \
debian/ocfs2-tools.config \
debian/ocfs2-tools.docs \
debian/ocfs2-tools.install \
debian/ocfs2-tools.manpages \
debian/ocfs2-tools.postinst \
debian/ocfs2-tools.postrm \
debian/ocfs2-tools.templates \
debian/ocfs2console.install \
debian/ocfs2console.manpages \
debian/ocfs2-tools-static-dev.install \
debian/rules
DIST_FILES = \
COPYING \
CREDITS \
MAINTAINERS \
README \
Config.make.in \
Preamble.make \
Postamble.make \
aclocal.m4 \
blkid.m4 \
glib-2.0.m4 \
mbvendor.m4 \
python.m4 \
pythondev.m4 \
runlog.m4 \
config.guess \
config.sub \
configure \
configure.in \
install-sh \
mkinstalldirs \
rpmarch.guess \
svnrev.guess \
Vendor.make \
vendor.guess \
Makepdfs \
documentation/samples/cluster.conf \
$(PKGCONFIG_SOURCES) \
$(DEBIAN_FILES)
DIST_RULES = dist-subdircreate
.PHONY: dist dist-subdircreate dist-bye dist-fresh distclean
dist-subdircreate:
$(TOPDIR)/mkinstalldirs $(DIST_DIR)/documentation/samples
$(TOPDIR)/mkinstalldirs $(DIST_DIR)/debian
dist-bye:
-rm -rf $(DIST_TOPDIR)
dist-fresh: dist-bye
$(TOPDIR)/mkinstalldirs $(DIST_TOPDIR)
dist: dist-fresh dist-all
GZIP=$(GZIP_OPTS) tar chozf $(DIST_TOPDIR).tar.gz $(DIST_TOPDIR)
$(MAKE) dist-bye
distclean: clean
rm -f Config.make config.status config.cache config.log $(PKGCONFIG_FILES)
INSTALL_RULES = install-pkgconfig
install-pkgconfig: $(PKGCONFIG_FILES)
$(SHELL) $(TOPDIR)/mkinstalldirs $(DESTDIR)$(libdir)/pkgconfig
for p in $(PKGCONFIG_FILES); do \
$(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/pkgconfig/$$p; \
done
include Vendor.make
def:
@echo $(TOOLSARCH)
include $(TOPDIR)/Postamble.make