1 EXTRA_DIST = perl/Collectd.pm perl/Makefile.PL perl/Collectd/Makefile.PL perl/Collectd/Unixsock.pm
3 all-local: @PERL_BINDINGS@
6 [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) install )
9 [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) realclean )
14 perl/Makefile: .perl-directory-stamp perl/Makefile.PL perl/Collectd/Makefile.PL
15 cd perl && @PERL@ Makefile.PL PREFIX=$(prefix) @PERL_BINDINGS_OPTIONS@
17 .perl-directory-stamp:
18 if test ! -d perl; then \
19 mkdir -p perl/Collectd; \
20 cp $(srcdir)/perl/Collectd.pm perl/; \
21 cp $(srcdir)/perl/Makefile.PL perl/; \
22 cp $(srcdir)/perl/Collectd/Unixsock.pm perl/Collectd/; \
23 cp $(srcdir)/perl/Collectd/Makefile.PL perl/Collectd/; \