use snprintf, strdup, ... where possible to make for safer operation -- Martin Pelikan
[rrdtool.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 examples doc bindings
9
10  # the following files are not mentioned in any other Makefile
11 EXTRA_DIST = COPYRIGHT CHANGES WIN32-BUILD-TIPS.txt TODO CONTRIBUTORS THREADS \
12              rrdtool.spec favicon.ico autogen.sh \
13              libtool \
14              netware/Makefile  \
15              etc/rrdcached-default etc/rrdcached-init \
16              win32/Makefile  win32/config.h  win32/rrdlib.vcproj  win32/rrdtool.vcproj  win32/rrdupdate.vcproj \
17              win32/README    win32/rrd.sln   win32/rrdtool.sln    win32/rrdupdate.sln 
18
19 CLEANFILES = config.cache
20
21 # use relaxed rules when building dists
22 AUTOMAKE_OPTIONS= foreign 
23
24 # where we keep local rules for automake
25 ACLOCAL_AMFLAGS=-I m4
26 ACLOCAL_M4= $(top_srcdir)/aclocal.m4
27 #AUTOHEADER = @AUTOHEADER@ --localdir=$(top_srcdir)/config
28 #AUTOCONF = @AUTOCONF@ --localdir=$(top_srcdir)/config
29
30 #       $(RSYNC) CHANGES archive/$(PACKAGE)-$(VERSION).tar.gz tobi@ipn.caida.org:/ipn/web/Tools/RRDtool/pub/
31
32 if HAVE_SYSTEMD
33 systemdsystemunit_DATA = \
34         etc/rrdcached.socket \
35         etc/rrdcached.service
36 endif
37
38 site-perl-inst: site-perl-install
39
40 site-perl-install: all bindings/perl-piped/Makefile bindings/perl-shared/Makefile
41         cd bindings/perl-piped && $(MAKE) install
42         cd bindings/perl-shared && $(MAKE) install
43
44 site-tcl-install: all
45         cd bindings/tcl && $(MAKE) tcl-install
46
47 site-python-install: all
48         cd bindings/python && $(PYTHON) setup.py install $(if $(DESTDIR),--root=$(DESTDIR))
49
50 # 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"}'
51 indent:
52         find ./ -name "*.[ch]" | xargs indent
53
54 ##END##