]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/blame - Makefile.am
Fix unsigned integer overflow in rrdtool first
[thirdparty/rrdtool-1.x.git] / Makefile.am
CommitLineData
2a69b9ec
TO
1# $Id$
2
37fc6638
TO
3## Process this file with automake to produce Makefile.in
4RSYNC = rsync --rsh=ssh
5
6# build the following subdirectories
58cc8383 7
3e469b4c 8SUBDIRS = po src bindings tests etc
deaef079
GZ
9
10if BUILD_DOCS
11SUBDIRS += doc
12endif
e24e014c
FB
13
14if BUILD_EXAMPLES
15SUBDIRS += examples
16endif
37fc6638 17
7618eef3 18 # the following files are not mentioned in any other Makefile
82cc9cb3 19EXTRA_DIST = COPYRIGHT CHANGES TODO CONTRIBUTORS THREADS VERSION LICENSE \
ebf63c14 20 rrdtool.spec favicon.ico bootstrap \
c6dc1043 21 libtool .indent.pro \
1964f6f2 22 m4/snprintf.m4 \
aa6a8e8e 23 win32/build-rrdtool.dot win32/build-rrdtool.pdf win32/build-rrdtool.svg \
2a597646 24 win32/librrd-8.def win32/librrd-8.rc win32/librrd-8.vcxproj \
8f0d15dc
WS
25 win32/Makefile.msc win32/Makefile_vcpkg.msc win32/README win32/README-MinGW-w64 \
26 win32/rrdcgi.rc win32/rrd_config.h \
27 win32/rrd.sln win32/rrdtool.rc win32/rrdtool.vcxproj win32/rrdupdate.rc \
28 win32/rrdcgi.vcxproj win32/rrdupdate.vcxproj win32/uac.manifest \
0fa3820c 29 win32/asprintf.c win32/asprintf.h win32/dirent.h win32/vasprintf-msvc.c
37fc6638
TO
30
31CLEANFILES = config.cache
32
33# use relaxed rules when building dists
aa6a8e8e 34AUTOMAKE_OPTIONS= foreign
37fc6638
TO
35
36# where we keep local rules for automake
c862de08 37ACLOCAL_AMFLAGS=-I m4
cdab6835 38ACLOCAL_M4= $(top_srcdir)/aclocal.m4
bdfab891
TO
39#AUTOHEADER = @AUTOHEADER@ --localdir=$(top_srcdir)/config
40#AUTOCONF = @AUTOCONF@ --localdir=$(top_srcdir)/config
37fc6638 41
37fc6638
TO
42# $(RSYNC) CHANGES archive/$(PACKAGE)-$(VERSION).tar.gz tobi@ipn.caida.org:/ipn/web/Tools/RRDtool/pub/
43
020fde35
TO
44etc-install:
45 cd etc && $(MAKE) install
134ed0d3 46
37fc6638
TO
47site-perl-inst: site-perl-install
48
a859ea61 49site-perl-install: all bindings/perl-piped/Makefile bindings/perl-shared/Makefile
37fc6638
TO
50 cd bindings/perl-piped && $(MAKE) install
51 cd bindings/perl-shared && $(MAKE) install
52
a859ea61 53site-tcl-install: all
37fc6638
TO
54 cd bindings/tcl && $(MAKE) tcl-install
55
3f437d5c 56site-python-install: all
4d36f2c7 57 cd bindings/python && $(PYTHON) setup.py install $(if $(DESTDIR),--root=$(DESTDIR))
3f437d5c 58
3ba6af1b
PB
59# Skip this part of "make distcheck": the perl, ruby, and tcl files
60# are not uninstalled by "make uninstall".
61distuninstallcheck:
62 @:
63
c4e8c1ea
TO
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"}'
65indent:
29046a7c 66 find ./ -name "*.[ch]" | xargs indent
c4e8c1ea 67
c5794b2d
SH
68clean-local:
69 -rm -f config.h bindings/perl-piped/Makefile.old bindings/perl-shared/Makefile.old
70
c6259757
TO
71
72
6f1c8623 73dist-hook: VERSION
e9e66bbc 74 $(AM_V_GEN)cd $(distdir) && $(PERL) -i -p -e 's/^\$$VERSION.+/\$$VERSION='$(NUMVERS)';/' bindings/perl-*/*.pm
1964f6f2 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
6f1c8623 76 $(AM_V_GEN)cd $(distdir) && $(PERL) -i -p -e 's/^Version:.+/Version: '$(PACKAGE_VERSION)'/' rrdtool.spec
c6259757
TO
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
aa6a8e8e 79
37fc6638 80##END##