back to 0.14.4
[rrdtool.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 RSYNC = rsync --rsh=ssh
3
4 # build the following subdirectories
5
6 SUBDIRS = po src examples doc bindings intl
7
8  # the following files are not mentioned in any other Makefile
9 EXTRA_DIST = COPYRIGHT CHANGES WIN32-BUILD-TIPS.txt TODO CONTRIBUTORS THREADS \
10              rrdtool.spec favicon.ico  win32/Makefile win32/config.h autogen.sh \
11              win32/rrd.dsp win32/rrd.sln win32/rrd.vcproj \
12              win32/rrd_config.h.msvc win32/rrdlib.vcproj win32/rrdtool.dsp \
13              win32/rrdtool.dsw win32/rrdtool.vcproj netware/Makefile  \
14              etc/rrdcached-default etc/rrdcached-init
15
16              
17
18 CLEANFILES = config.cache
19
20 # use relaxed rules when building dists
21 AUTOMAKE_OPTIONS= foreign 
22
23 # where we keep local rules for automake
24 ACLOCAL_AMFLAGS=-I m4
25 ACLOCAL_M4= $(top_srcdir)/aclocal.m4
26 #AUTOHEADER = @AUTOHEADER@ --localdir=$(top_srcdir)/config
27 #AUTOCONF = @AUTOCONF@ --localdir=$(top_srcdir)/config
28
29 to-docs: to-versync
30         (cd doc && $(MAKE) clean && $(MAKE) && $(MAKE) pdf)
31
32 to-dist: to-docs dist
33         mv $(PACKAGE)-$(VERSION).tar.gz archive
34
35 to-scp: to-dist
36         cp CHANGES  archive/$(PACKAGE)-$(VERSION).tar.gz /home/oetiker/public_html/webtools/rrdtool/pub/
37         (cd /home/oetiker/public_html/webtools/rrdtool/pub; rm $(PACKAGE).tar.gz; ln -s $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE).tar.gz)
38
39 #       $(RSYNC) CHANGES archive/$(PACKAGE)-$(VERSION).tar.gz tobi@ipn.caida.org:/ipn/web/Tools/RRDtool/pub/
40
41 site-perl-inst: site-perl-install
42
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
46
47 site-tcl-install: all
48         cd bindings/tcl && $(MAKE) tcl-install
49
50 site-python-install: all
51         cd bindings/python && $(PYTHON) setup.py install
52
53 # 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"}'
54 indent:
55         find ./ -name "*.[ch]" | xargs indent
56
57 ##END##