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