forked from oetiker/rrdtool-1.x
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
71 lines (52 loc) · 2.4 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
# $Id$
## Process this file with automake to produce Makefile.in
RSYNC = rsync --rsh=ssh
# build the following subdirectories
SUBDIRS = po src doc bindings tests
if BUILD_EXAMPLES
SUBDIRS += examples
endif
# the following files are not mentioned in any other Makefile
EXTRA_DIST = COPYRIGHT CHANGES TODO CONTRIBUTORS THREADS \
rrdtool.spec favicon.ico bootstrap \
libtool \
m4/snprintf.m4 \
etc/rrdcached-default-redhat etc/rrdcached-init-redhat \
win32/README win32/Makefile.msc
CLEANFILES = config.cache
# use relaxed rules when building dists
AUTOMAKE_OPTIONS= foreign
# where we keep local rules for automake
ACLOCAL_AMFLAGS=-I m4
ACLOCAL_M4= $(top_srcdir)/aclocal.m4
#AUTOHEADER = @AUTOHEADER@ --localdir=$(top_srcdir)/config
#AUTOCONF = @AUTOCONF@ --localdir=$(top_srcdir)/config
# $(RSYNC) CHANGES archive/$(PACKAGE)-$(VERSION).tar.gz [email protected]:/ipn/web/Tools/RRDtool/pub/
if HAVE_SYSTEMD
systemdsystemunit_DATA = \
etc/rrdcached.socket \
etc/rrdcached.service
endif
site-perl-inst: site-perl-install
site-perl-install: all bindings/perl-piped/Makefile bindings/perl-shared/Makefile
cd bindings/perl-piped && $(MAKE) install
cd bindings/perl-shared && $(MAKE) install
site-tcl-install: all
cd bindings/tcl && $(MAKE) tcl-install
site-python-install: all
cd bindings/python && $(PYTHON) setup.py install $(if $(DESTDIR),--root=$(DESTDIR))
# Skip this part of "make distcheck": the perl, ruby, and tcl files
# are not uninstalled by "make uninstall".
distuninstallcheck:
@:
# find . -name "*.c" -or -name "*.h" | xargs perl -0777 -n -e 'while (s/typedef\s+(?:unsigned\s+|signed\s+|unival\s+)?\S+\s+\*?([^{}\s;(]+)//){print "-T$1\n"}'
indent:
find ./ -name "*.[ch]" | xargs indent
clean-local:
-rm -f config.h bindings/perl-piped/Makefile.old bindings/perl-shared/Makefile.old
dist-hook: VERSION
$(AM_V_GEN)cd $(distdir) && $(PERL) -i -p -e 's/^\$VERSION.+/\$VERSION='$(NUM_VERS)';/' bindings/perl-*/*.pm
$(AM_V_GEN)cd $(distdir) && $(PERL) -i -p -e 's/RRDtool 1.GIT, Copyright by Tobi Oetiker/RRDtool '$(PACKAGE_VERSION)', Copyright 1997-'`date +%Y`' by Tobi Oetiker/' src/*.h src/*.c
$(AM_V_GEN)cd $(distdir) && $(PERL) -i -p -e 's/^Version:.+/Version: '$(PACKAGE_VERSION)'/' rrdtool.spec
$(AM_V_GEN)cd $(distdir) && $(PERL) -i -p -e 's/rrdtool-[\.\d]+\d(-[a-z0-9]+)?/rrdtool-'$(PACKAGE_VERSION)'/g' doc/rrdbuild.pod
##END##