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