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