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