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