]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/blob - Makefile.am
Merge pull request #685 from odoucet/master
[thirdparty/rrdtool-1.x.git] / Makefile.am
1 # $Id$
2
3 ## Process this file with automake to produce Makefile.in
4 RSYNC = rsync --rsh=ssh
5
6 # build the following subdirectories
7
8 SUBDIRS = po src doc bindings tests
9
10 if BUILD_EXAMPLES
11 SUBDIRS += examples
12 endif
13
14 # the following files are not mentioned in any other Makefile
15 EXTRA_DIST = COPYRIGHT CHANGES TODO CONTRIBUTORS THREADS VERSION LICENSE \
16 rrdtool.spec favicon.ico bootstrap \
17 libtool \
18 m4/snprintf.m4 \
19 etc/rrdcached-default-redhat etc/rrdcached-init-redhat \
20 win32/README win32/Makefile.msc
21
22 CLEANFILES = config.cache
23
24 # use relaxed rules when building dists
25 AUTOMAKE_OPTIONS= foreign
26
27 # where we keep local rules for automake
28 ACLOCAL_AMFLAGS=-I m4
29 ACLOCAL_M4= $(top_srcdir)/aclocal.m4
30 #AUTOHEADER = @AUTOHEADER@ --localdir=$(top_srcdir)/config
31 #AUTOCONF = @AUTOCONF@ --localdir=$(top_srcdir)/config
32
33 # $(RSYNC) CHANGES archive/$(PACKAGE)-$(VERSION).tar.gz tobi@ipn.caida.org:/ipn/web/Tools/RRDtool/pub/
34
35 if HAVE_SYSTEMD
36 systemdsystemunit_DATA = \
37 etc/rrdcached.socket \
38 etc/rrdcached.service
39 endif
40
41 site-perl-inst: site-perl-install
42
43 site-perl-install: all bindings/perl-piped/Makefile bindings/perl-shared/Makefile
44 cd bindings/perl-piped && $(MAKE) install
45 cd bindings/perl-shared && $(MAKE) install
46
47 site-tcl-install: all
48 cd bindings/tcl && $(MAKE) tcl-install
49
50 site-python-install: all
51 cd bindings/python && $(PYTHON) setup.py install $(if $(DESTDIR),--root=$(DESTDIR))
52
53 # Skip this part of "make distcheck": the perl, ruby, and tcl files
54 # are not uninstalled by "make uninstall".
55 distuninstallcheck:
56 @:
57
58 # 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"}'
59 indent:
60 find ./ -name "*.[ch]" | xargs indent
61
62 clean-local:
63 -rm -f config.h bindings/perl-piped/Makefile.old bindings/perl-shared/Makefile.old
64
65
66
67 dist-hook: VERSION
68 $(AM_V_GEN)cd $(distdir) && $(PERL) -i -p -e 's/^\$VERSION.+/\$VERSION='$(NUM_VERS)';/' bindings/perl-*/*.pm
69 $(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
70 $(AM_V_GEN)cd $(distdir) && $(PERL) -i -p -e 's/^Version:.+/Version: '$(PACKAGE_VERSION)'/' rrdtool.spec
71 $(AM_V_GEN)$(PERL) -i -p -e 's/rrdtool-[\.\d]+\d(-[a-z0-9]+)?/rrdtool-'$(PACKAGE_VERSION)'/g' doc/rrdbuild.pod
72 $(AM_V_GEN)(cd doc && $(MAKE)) && cp -p doc/rrdbuild.* $(distdir)/doc
73
74 ##END##