]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/blame - Makefile.am
Initial revision
[thirdparty/rrdtool-1.x.git] / Makefile.am
CommitLineData
37fc6638
TO
1## Process this file with automake to produce Makefile.in
2RSYNC = rsync --rsh=ssh
3
4# build the following subdirectories
5SUBDIRS = libraries bindings src doc examples
6
7 # the following files are not mentioned in any other Makefile
8EXTRA_DIST = COPYRIGHT CHANGES NT-BUILD-TIPS.txt TODO CONTRIBUTORS rrdtool.spec
9
10CLEANFILES = config.cache
11
12# use relaxed rules when building dists
13AUTOMAKE_OPTIONS= foreign no-dependencies
14
15# where we keep local rules for automake
16ACLOCAL_M4= $(top_srcdir)/config/aclocal.m4
17AUTOHEADER = @AUTOHEADER@ --localdir=$(top_srcdir)/config
18AUTOCONF = @AUTOCONF@ --localdir=$(top_srcdir)/config
19
20to-docs: to-versync
21 (cd doc && $(MAKE) clean && $(MAKE) && $(MAKE) pdf)
22 (cd website && wmk-1.7.4 -f manual tutorial contributors.wml && ./site-sync )
23
24to-versync:
25 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
26 perl -i -p -e 's|RRDtool\s+\d+\.\d+\.\d+ |RRDtool $(VERSION) |' src/*.[ch]
27
28to-dist: to-docs dist
29 mv $(PACKAGE)-$(VERSION).tar.gz archive
30
31to-scp: to-dist
32 cp CHANGES archive/$(PACKAGE)-$(VERSION).tar.gz /home/oetiker/public_html/webtools/rrdtool/pub/
33 (cd /home/oetiker/public_html/webtools/rrdtool/pub; rm $(PACKAGE).tar.gz; ln -s $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE).tar.gz)
34
35# $(RSYNC) CHANGES archive/$(PACKAGE)-$(VERSION).tar.gz tobi@ipn.caida.org:/ipn/web/Tools/RRDtool/pub/
36
37site-perl-inst: site-perl-install
38
39site-perl-install: bindings/perl-piped/Makefile bindings/perl-shared/Makefile
40 cd bindings/perl-piped && $(MAKE) install
41 cd bindings/perl-shared && $(MAKE) install
42
43site-tcl-install:
44 cd bindings/tcl && $(MAKE) tcl-install
45
46##END##