]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/blob - Makefile.am
Remove librrd-4.vcxproj.user
[thirdparty/rrdtool-1.x.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 bindings tests
9
10 if BUILD_DOCS
11 SUBDIRS += doc
12 endif
13
14 if BUILD_EXAMPLES
15 SUBDIRS += examples
16 endif
17
18 # the following files are not mentioned in any other Makefile
19 EXTRA_DIST = COPYRIGHT CHANGES TODO CONTRIBUTORS THREADS VERSION LICENSE \
20 rrdtool.spec favicon.ico bootstrap \
21 libtool \
22 m4/snprintf.m4 \
23 etc/rrdcached-default-redhat etc/rrdcached-init-redhat \
24 win32/build-rrdtool.dot win32/build-rrdtool.pdf win32/build-rrdtool.svg \
25 win32/librrd-4.def win32/librrd-4.rc win32/librrd-4.vcxproj \
26 win32/Makefile.msc win32/README win32/README-MinGW-w64 win32/rrdcgi.rc win32/rrd_config.h \
27 win32/rrd.sln win32/rrdtool.rc win32/rrdtool.sln win32/rrdtool.vcxproj win32/rrdupdate.rc \
28 win32/rrdupdate.sln win32/rrdupdate.vcxproj win32/uac.manifest \
29 win32/asprintf.c win32/asprintf.h win32/dirent.h win32/vasprintf-msvc.c
30
31 CLEANFILES = config.cache
32
33 # use relaxed rules when building dists
34 AUTOMAKE_OPTIONS= foreign
35
36 # where we keep local rules for automake
37 ACLOCAL_AMFLAGS=-I m4
38 ACLOCAL_M4= $(top_srcdir)/aclocal.m4
39 #AUTOHEADER = @AUTOHEADER@ --localdir=$(top_srcdir)/config
40 #AUTOCONF = @AUTOCONF@ --localdir=$(top_srcdir)/config
41
42 # $(RSYNC) CHANGES archive/$(PACKAGE)-$(VERSION).tar.gz tobi@ipn.caida.org:/ipn/web/Tools/RRDtool/pub/
43
44 etc-install:
45 cd etc && $(MAKE) install
46
47 site-perl-inst: site-perl-install
48
49 site-perl-install: all bindings/perl-piped/Makefile bindings/perl-shared/Makefile
50 cd bindings/perl-piped && $(MAKE) install
51 cd bindings/perl-shared && $(MAKE) install
52
53 site-tcl-install: all
54 cd bindings/tcl && $(MAKE) tcl-install
55
56 site-python-install: all
57 cd bindings/python && $(PYTHON) setup.py install $(if $(DESTDIR),--root=$(DESTDIR))
58
59 # Skip this part of "make distcheck": the perl, ruby, and tcl files
60 # are not uninstalled by "make uninstall".
61 distuninstallcheck:
62 @:
63
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:
66 find ./ -name "*.[ch]" | xargs indent
67
68 clean-local:
69 -rm -f config.h bindings/perl-piped/Makefile.old bindings/perl-shared/Makefile.old
70
71
72
73 dist-hook: VERSION
74 $(AM_V_GEN)cd $(distdir) && $(PERL) -i -p -e 's/^\$$VERSION.+/\$$VERSION='$(NUMVERS)';/' bindings/perl-*/*.pm
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
76 $(AM_V_GEN)cd $(distdir) && $(PERL) -i -p -e 's/^Version:.+/Version: '$(PACKAGE_VERSION)'/' rrdtool.spec
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
79
80 ##END##