Fix file:// not working as return code is 0 and not 200, as fixed
[collectd.git] / bindings / Makefile.am
1 SUBDIRS =
2
3 if BUILD_WITH_JAVA
4 SUBDIRS += java
5 endif
6
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
12
13 all-local: @PERL_BINDINGS@
14
15 install-exec-local:
16         [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) install )
17
18 clean-local:
19         [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) realclean )
20
21 perl: perl/Makefile
22         cd perl && $(MAKE)
23
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@
27
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 $@
37
38 .PHONY: perl
39