7 EXTRA_DIST = perl/Makefile.PL \
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@
16 [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) install )
19 [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) realclean )
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/; \