forked from ganglia/monitor-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
83 lines (64 loc) · 2.77 KB
/
Makefile.am
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
#
include $(top_srcdir)/ganglia.inc
if BUILD_GMETAD
GMETAD_SUBDIR = gmetad
else
GMETAD_SUBDIR =
endif
EXTRA_SUBDIRS = "gmetad-python contrib solaris"
INCLUDES = @APR_INCLUDES@
AUTOMAKE_OPTIONS = dist-bzip2 dist-tarZ dist-zip
GANGLIA_SUBDIRS = lib libmetrics tests $(GMETAD_SUBDIR) gmond gstat gmetric include mans
SUBDIRS = $(GANGLIA_SUBDIRS)
# Make sure that no matter the setting for --with-gmetad
# that the gmetad directory gets distributed
GANGLIA_SUBDIRS_DIST = lib libmetrics tests gmetad gmond gstat gmetric include mans
DIST_SUBDIRS = $(GANGLIA_SUBDIRS_DIST)
EXTRA_DIST = BUGS README.WIN README.AIX README.GIT ganglia.spec.aix ganglia.spec ganglia.pod ganglia.html ganglia-config.in \
WiX Makefile.WiX \
scripts
ganglia.sub: ganglia.pod
sed -e 's/GANGLIA_VERSION/@VERSION@/' < $(srcdir)/ganglia.pod > ganglia.sub
man_create: ganglia.sub
pod2man --section 3 --center "ganglia" --release "@VERSION@" --date "`date`" --name ganglia ganglia.sub ganglia.man
ganglia.html: ganglia.sub
pod2html --title="Ganglia" --infile=ganglia.sub --outfile=ganglia.html
README: ganglia.sub
pod2text ganglia.sub README
CLEANFILES = ganglia.sub pod2htm*
dist-local: README ganglia.html
# We go through and make sure all the files have
# the same timestamp with the last command here...
dist-hook:
for subdir in $(EXTRA_SUBDIRS); do \
tar -c --exclude=".libs" --exclude "core.*" \
--exclude="*.o" --exclude="*.lo" \
--exclude="*.la" --exclude=".deps" \
--exclude="Makefile" --exclude="libtool" \
--exclude="config.h" \
--exclude="*.spec" --exclude="stamp-h1" --exclude="*-config" \
--exclude="autom4te.cache" --exclude="test-metrics" \
--exclude="*.tar.gz" --exclude="config.status" \
--exclude="config.log" --exclude="config.cache" \
--exclude="configure.lineno" --exclude="configure.status.lineno" \
-f - $$subdir | (cd $(distdir) && tar -xf -)\
done;
touch $(distdir)/Makefile.am
find $(distdir) -exec touch -r $(distdir)/Makefile.am {} \;
# _SCRIPTS causes the target to be built at build time
# we want it done at install time
#bin_SCRIPTS = ganglia-config
ganglia-config: ganglia-config.in $(FIXCONFIG)
$(FIXCONFIG) ganglia-config.in
install-exec-hook: ganglia-config
mkdir -p $(DESTDIR)$(bindir) && \
$(INSTALL_SCRIPT) ganglia-config $(DESTDIR)$(bindir)/ganglia-config
contrib/ganglia_gmond.xml: contrib/ganglia_gmond.xml.in $(FIXCONFIG)
$(FIXCONFIG) contrib/ganglia_gmond.xml.in
solaris/pkginfo: solaris/pkginfo.in $(FIXCONFIG)
$(FIXCONFIG) solaris/pkginfo.in
# Notice that some files declared in this hook never get installed anywhere
# We use the hook to force the files to be generated, but they remain
# within the build tree for someone to inspect or manually copy to
# the desired location if needed
install-data-hook: contrib/ganglia_gmond.xml solaris/pkginfo