Code

Merge branch 'collectd-4.9' into collectd-4.10
[collectd.git] / bindings / Makefile.am
1 SUBDIRS =
3 if BUILD_WITH_JAVA
4 SUBDIRS += java
5 endif
7 EXTRA_DIST = perl/Makefile.PL \
8              perl/lib/Collectd.pm \
9              perl/lib/Collectd/Unixsock.pm \
10              perl/lib/Collectd/Plugins/Monitorus.pm \
11              perl/lib/Collectd/Plugins/OpenVZ.pm
13 all-local: @PERL_BINDINGS@
15 install-exec-local:
16         [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) install )
18 clean-local:
19         [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) realclean )
21 perl: perl/Makefile
22         cd perl && $(MAKE)
24 perl/Makefile: .perl-directory-stamp perl/Makefile.PL \
25         $(top_builddir)/config.status
26         cd perl && @PERL@ Makefile.PL PREFIX=$(prefix) @PERL_BINDINGS_OPTIONS@
28 .perl-directory-stamp:
29         if test ! -d perl; then \
30           mkdir -p perl/Collectd/Plugins; \
31           cp $(srcdir)/perl/Collectd.pm perl/; \
32           cp $(srcdir)/perl/Makefile.PL perl/; \
33           cp $(srcdir)/perl/Collectd/Unixsock.pm perl/Collectd/; \
34           cp $(srcdir)/perl/Collectd/Plugins/OpenVZ.pm perl/Collectd/Plugins/; \
35         fi
36         touch $@
38 .PHONY: perl