X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=Makefile.am;h=321014c689baba99b2398313f87a218f7139df47;hp=8951c777cc19eb7e34d0b903312f76d3528ee059;hb=d4110e29da41ce702bcc3327e86768c6f266915e;hpb=b837c0527f117b54845242ee7626df6d88394444 diff --git a/Makefile.am b/Makefile.am index 8951c77..321014c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,11 +2,24 @@ RSYNC = rsync --rsh=ssh # build the following subdirectories -SUBDIRS = src bindings doc examples +if BUILD_LIBINTL +PO=po +else +PO= +endif - # the following files are not mentioned in any other Makefile -EXTRA_DIST = COPYRIGHT CHANGES NT-BUILD-TIPS.txt TODO CONTRIBUTORS THREADS \ - rrdtool.spec +SUBDIRS = $(PO) src examples doc bindings + + # the following files are not mentioned in any other Makefile +EXTRA_DIST = COPYRIGHT CHANGES WIN32-BUILD-TIPS.txt TODO CONTRIBUTORS THREADS \ + intltool-extract.in intltool-merge.in intltool-update.in \ + rrdtool.spec favicon.ico win32/config.h win32/rrd.dsp \ + win32/rrd.vcproj win32/rrdtool.dsp win32/rrdtool.dsw \ + win32/rrdtool.vcproj win32/Makefile \ + win32/rrd_config.h.msvc netware/Makefile \ + etc/rrdcached-default etc/rrdcached-init + + CLEANFILES = config.cache @@ -16,16 +29,11 @@ AUTOMAKE_OPTIONS= foreign # where we keep local rules for automake ACLOCAL_M4= $(top_srcdir)/aclocal.m4 -AUTOHEADER = @AUTOHEADER@ --localdir=$(top_srcdir)/config -AUTOCONF = @AUTOCONF@ --localdir=$(top_srcdir)/config +#AUTOHEADER = @AUTOHEADER@ --localdir=$(top_srcdir)/config +#AUTOCONF = @AUTOCONF@ --localdir=$(top_srcdir)/config to-docs: to-versync (cd doc && $(MAKE) clean && $(MAKE) && $(MAKE) pdf) - (cd website && wmk-1.7.4 -f manual tutorial contributors.wml && ./site-sync ) - -to-versync: - 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 - perl -i -p -e 's|RRDtool\s+\d+\.\d+\.\d+ |RRDtool $(VERSION) |' src/*.[ch] to-dist: to-docs dist mv $(PACKAGE)-$(VERSION).tar.gz archive @@ -45,4 +53,11 @@ site-perl-install: all bindings/perl-piped/Makefile bindings/perl-shared/Makefil site-tcl-install: all cd bindings/tcl && $(MAKE) tcl-install +site-python-install: all + cd bindings/python && $(PYTHON) setup.py install + +# 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"}' +indent: + find ./ -name "*.[ch]" | xargs indent + ##END##