The BIG graph update
[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 = libraries src bindings doc examples
6
7   # the following files are not mentioned in any other Makefile
8 EXTRA_DIST = COPYRIGHT CHANGES NT-BUILD-TIPS.txt TODO CONTRIBUTORS rrdtool.spec
9
10 CLEANFILES = config.cache
11
12 # use relaxed rules when building dists
13 AUTOMAKE_OPTIONS= foreign 
14
15 # where we keep local rules for automake
16
17 ACLOCAL_M4= $(top_srcdir)/aclocal.m4
18 AUTOHEADER = @AUTOHEADER@ --localdir=$(top_srcdir)/config
19 AUTOCONF = @AUTOCONF@ --localdir=$(top_srcdir)/config
20
21 to-docs: to-versync
22         (cd doc && $(MAKE) clean && $(MAKE) && $(MAKE) pdf)
23         (cd website && wmk-1.7.4 -f manual tutorial contributors.wml && ./site-sync )
24
25 to-versync: 
26         perl -i -p -e '"$(VERSION)" =~ /(\d+)\.(\d+)\.(\d+)/; $$v=sprintf("%1d.%02d0%02d1" ,$${1},$${2},$${3}); s|VERSION\s*=\s*[\d.]+|VERSION = $$v|' perl-*/RRD?.pm
27         perl -i -p -e 's|RRDtool\s+\d+\.\d+\.\d+ |RRDtool $(VERSION) |' src/*.[ch]
28
29 to-dist: to-docs dist
30         mv $(PACKAGE)-$(VERSION).tar.gz archive
31
32 to-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
38 site-perl-inst: site-perl-install
39
40 site-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
44 site-tcl-install: all
45         cd bindings/tcl && $(MAKE) tcl-install
46
47 ##END##