1 EXTRA_DIST = perl/Collectd.pm perl/Makefile.PL perl/Collectd/Makefile.PL \
2 perl/Collectd/Unixsock.pm
4 all-local: @PERL_BINDINGS@
6 install-exec-local:
7 [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) install )
9 clean-local:
10 [ ! -f perl/Makefile ] || ( cd perl && $(MAKE) realclean )
12 perl: perl/Makefile
13 cd perl && $(MAKE)
15 perl/Makefile: .perl-directory-stamp perl/Makefile.PL \
16 perl/Collectd/Makefile.PL $(top_builddir)/config.status
17 cd perl && @PERL@ Makefile.PL PREFIX=$(prefix) @PERL_BINDINGS_OPTIONS@
19 .perl-directory-stamp:
20 if test ! -d perl; then \
21 mkdir -p perl/Collectd; \
22 cp $(srcdir)/perl/Collectd.pm perl/; \
23 cp $(srcdir)/perl/Makefile.PL perl/; \
24 cp $(srcdir)/perl/Collectd/Unixsock.pm perl/Collectd/; \
25 cp $(srcdir)/perl/Collectd/Makefile.PL perl/Collectd/; \
26 fi
27 touch $@
29 .PHONY: perl