3 ## Process this file with automake to produce Makefile.in
4 RSYNC = rsync --rsh=ssh
6 # build the following subdirectories
8 SUBDIRS = po src doc bindings tests
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 \
19 etc/rrdcached-default-redhat etc/rrdcached-init-redhat \
20 win32/README win32/Makefile.msc
22 CLEANFILES = config.cache
24 # use relaxed rules when building dists
25 AUTOMAKE_OPTIONS= foreign
27 # where we keep local rules for automake
29 ACLOCAL_M4= $(top_srcdir)/aclocal.m4
30 #AUTOHEADER = @AUTOHEADER@ --localdir=$(top_srcdir)/config
31 #AUTOCONF = @AUTOCONF@ --localdir=$(top_srcdir)/config
33 # $(RSYNC) CHANGES archive/$(PACKAGE)-$(VERSION).tar.gz tobi@ipn.caida.org:/ipn/web/Tools/RRDtool/pub/
36 systemdsystemunit_DATA = \
37 etc/rrdcached.socket \
41 site-perl-inst: site-perl-install
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
48 cd bindings/tcl && $(MAKE) tcl-install
50 site-python-install: all
51 cd bindings/python && $(PYTHON) setup.py install $(if $(DESTDIR),--root=$(DESTDIR))
53 # Skip this part of "make distcheck": the perl, ruby, and tcl files
54 # are not uninstalled by "make uninstall".
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"}'
60 find ./ -name "*.[ch]" | xargs indent
63 -rm -f config.h bindings/perl-piped/Makefile.old bindings/perl-shared/Makefile.old
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