]>
Commit | Line | Data |
---|---|---|
2a69b9ec TO |
1 | # $Id$ |
2 | ||
37fc6638 TO |
3 | ## Process this file with automake to produce Makefile.in |
4 | RSYNC = rsync --rsh=ssh | |
5 | ||
6 | # build the following subdirectories | |
58cc8383 | 7 | |
3e469b4c | 8 | SUBDIRS = po src bindings tests etc |
deaef079 GZ |
9 | |
10 | if BUILD_DOCS | |
11 | SUBDIRS += doc | |
12 | endif | |
e24e014c FB |
13 | |
14 | if BUILD_EXAMPLES | |
15 | SUBDIRS += examples | |
16 | endif | |
37fc6638 | 17 | |
7618eef3 | 18 | # the following files are not mentioned in any other Makefile |
82cc9cb3 | 19 | EXTRA_DIST = COPYRIGHT CHANGES TODO CONTRIBUTORS THREADS VERSION LICENSE \ |
ebf63c14 | 20 | rrdtool.spec favicon.ico bootstrap \ |
c6dc1043 | 21 | libtool .indent.pro \ |
1964f6f2 | 22 | m4/snprintf.m4 \ |
aa6a8e8e | 23 | win32/build-rrdtool.dot win32/build-rrdtool.pdf win32/build-rrdtool.svg \ |
2a597646 | 24 | win32/librrd-8.def win32/librrd-8.rc win32/librrd-8.vcxproj \ |
8f0d15dc WS |
25 | win32/Makefile.msc win32/Makefile_vcpkg.msc win32/README win32/README-MinGW-w64 \ |
26 | win32/rrdcgi.rc win32/rrd_config.h \ | |
27 | win32/rrd.sln win32/rrdtool.rc win32/rrdtool.vcxproj win32/rrdupdate.rc \ | |
28 | win32/rrdcgi.vcxproj win32/rrdupdate.vcxproj win32/uac.manifest \ | |
0fa3820c | 29 | win32/asprintf.c win32/asprintf.h win32/dirent.h win32/vasprintf-msvc.c |
37fc6638 TO |
30 | |
31 | CLEANFILES = config.cache | |
32 | ||
33 | # use relaxed rules when building dists | |
aa6a8e8e | 34 | AUTOMAKE_OPTIONS= foreign |
37fc6638 TO |
35 | |
36 | # where we keep local rules for automake | |
c862de08 | 37 | ACLOCAL_AMFLAGS=-I m4 |
cdab6835 | 38 | ACLOCAL_M4= $(top_srcdir)/aclocal.m4 |
bdfab891 TO |
39 | #AUTOHEADER = @AUTOHEADER@ --localdir=$(top_srcdir)/config |
40 | #AUTOCONF = @AUTOCONF@ --localdir=$(top_srcdir)/config | |
37fc6638 | 41 | |
37fc6638 TO |
42 | # $(RSYNC) CHANGES archive/$(PACKAGE)-$(VERSION).tar.gz tobi@ipn.caida.org:/ipn/web/Tools/RRDtool/pub/ |
43 | ||
020fde35 TO |
44 | etc-install: |
45 | cd etc && $(MAKE) install | |
134ed0d3 | 46 | |
37fc6638 TO |
47 | site-perl-inst: site-perl-install |
48 | ||
a859ea61 | 49 | site-perl-install: all bindings/perl-piped/Makefile bindings/perl-shared/Makefile |
37fc6638 TO |
50 | cd bindings/perl-piped && $(MAKE) install |
51 | cd bindings/perl-shared && $(MAKE) install | |
52 | ||
a859ea61 | 53 | site-tcl-install: all |
37fc6638 TO |
54 | cd bindings/tcl && $(MAKE) tcl-install |
55 | ||
3f437d5c | 56 | site-python-install: all |
4d36f2c7 | 57 | cd bindings/python && $(PYTHON) setup.py install $(if $(DESTDIR),--root=$(DESTDIR)) |
3f437d5c | 58 | |
3ba6af1b PB |
59 | # Skip this part of "make distcheck": the perl, ruby, and tcl files |
60 | # are not uninstalled by "make uninstall". | |
61 | distuninstallcheck: | |
62 | @: | |
63 | ||
c4e8c1ea TO |
64 | # 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"}' |
65 | indent: | |
29046a7c | 66 | find ./ -name "*.[ch]" | xargs indent |
c4e8c1ea | 67 | |
c5794b2d SH |
68 | clean-local: |
69 | -rm -f config.h bindings/perl-piped/Makefile.old bindings/perl-shared/Makefile.old | |
70 | ||
c6259757 TO |
71 | |
72 | ||
6f1c8623 | 73 | dist-hook: VERSION |
e9e66bbc | 74 | $(AM_V_GEN)cd $(distdir) && $(PERL) -i -p -e 's/^\$$VERSION.+/\$$VERSION='$(NUMVERS)';/' bindings/perl-*/*.pm |
1964f6f2 | 75 | $(AM_V_GEN)cd $(distdir) && $(PERL) -i -p -e 's/RRDtool 1.GIT, Copyright by Tobi Oetiker/RRDtool '$(PACKAGE_VERSION)', Copyright 1997-'`date +%Y`' by Tobi Oetiker/' src/*.h src/*.c |
6f1c8623 | 76 | $(AM_V_GEN)cd $(distdir) && $(PERL) -i -p -e 's/^Version:.+/Version: '$(PACKAGE_VERSION)'/' rrdtool.spec |
c6259757 TO |
77 | $(AM_V_GEN)$(PERL) -i -p -e 's/rrdtool-[\.\d]+\d(-[a-z0-9]+)?/rrdtool-'$(PACKAGE_VERSION)'/g' doc/rrdbuild.pod |
78 | $(AM_V_GEN)(cd doc && $(MAKE)) && cp -p doc/rrdbuild.* $(distdir)/doc | |
aa6a8e8e | 79 | |
37fc6638 | 80 | ##END## |