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