3 ## Process this file with automake to produce Makefile.in
4 RSYNC = rsync --rsh=ssh
6 # build the following subdirectories
8 SUBDIRS = po src bindings tests
18 # the following files are not mentioned in any other Makefile
19 EXTRA_DIST = COPYRIGHT CHANGES TODO CONTRIBUTORS THREADS VERSION LICENSE \
20 rrdtool.spec favicon.ico bootstrap \
23 etc/rrdcached-default-redhat etc/rrdcached-init-redhat \
24 win32/build-rrdtool.dot win32/build-rrdtool.pdf win32/build-rrdtool.svg \
25 win32/librrd-4.def win32/librrd-4.rc win32/librrd-4.vcxproj \
26 win32/Makefile.msc win32/README win32/README-MinGW-w64 win32/rrdcgi.rc win32/rrd_config.h \
27 win32/rrd.sln win32/rrdtool.rc win32/rrdtool.sln win32/rrdtool.vcxproj win32/rrdupdate.rc \
28 win32/rrdupdate.sln win32/rrdupdate.vcxproj win32/uac.manifest \
29 win32/asprintf.c win32/asprintf.h win32/dirent.h win32/vasprintf-msvc.c
31 CLEANFILES = config.cache
33 # use relaxed rules when building dists
34 AUTOMAKE_OPTIONS= foreign
36 # where we keep local rules for automake
38 ACLOCAL_M4= $(top_srcdir)/aclocal.m4
39 #AUTOHEADER = @AUTOHEADER@ --localdir=$(top_srcdir)/config
40 #AUTOCONF = @AUTOCONF@ --localdir=$(top_srcdir)/config
42 # $(RSYNC) CHANGES archive/$(PACKAGE)-$(VERSION).tar.gz tobi@ipn.caida.org:/ipn/web/Tools/RRDtool/pub/
45 cd etc && $(MAKE) install
47 site-perl-inst: site-perl-install
49 site-perl-install: all bindings/perl-piped/Makefile bindings/perl-shared/Makefile
50 cd bindings/perl-piped && $(MAKE) install
51 cd bindings/perl-shared && $(MAKE) install
54 cd bindings/tcl && $(MAKE) tcl-install
56 site-python-install: all
57 cd bindings/python && $(PYTHON) setup.py install $(if $(DESTDIR),--root=$(DESTDIR))
59 # Skip this part of "make distcheck": the perl, ruby, and tcl files
60 # are not uninstalled by "make uninstall".
64 # 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"}'
66 find ./ -name "*.[ch]" | xargs indent
69 -rm -f config.h bindings/perl-piped/Makefile.old bindings/perl-shared/Makefile.old
74 $(AM_V_GEN)cd $(distdir) && $(PERL) -i -p -e 's/^\$$VERSION.+/\$$VERSION='$(NUMVERS)';/' bindings/perl-*/*.pm
75 $(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
76 $(AM_V_GEN)cd $(distdir) && $(PERL) -i -p -e 's/^Version:.+/Version: '$(PACKAGE_VERSION)'/' rrdtool.spec
77 $(AM_V_GEN)$(PERL) -i -p -e 's/rrdtool-[\.\d]+\d(-[a-z0-9]+)?/rrdtool-'$(PACKAGE_VERSION)'/g' doc/rrdbuild.pod
78 $(AM_V_GEN)(cd doc && $(MAKE)) && cp -p doc/rrdbuild.* $(distdir)/doc