X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=bindings%2FMakefile.am;h=16872e88e2159dd4b3db58cc72377a93ccc4f30d;hb=c89c9b7b5e498e5a77c6eb1b1a88593fcced85f5;hp=37e31ea19b0013672da7d4b7f79c9637630a3fc4;hpb=613c72c29b5405d7e170ae7fe12611492ecb5fef;p=collectd.git diff --git a/bindings/Makefile.am b/bindings/Makefile.am index 37e31ea1..16872e88 100644 --- a/bindings/Makefile.am +++ b/bindings/Makefile.am @@ -11,8 +11,16 @@ clean-local: perl: perl/Makefile $(MAKE) -C perl -perl/Makefile: perl/Makefile.PL perl/Collectd/Makefile.PL +perl/Makefile: .perl-directory-stamp perl/Makefile.PL perl/Collectd/Makefile.PL cd perl && @PERL@ Makefile.PL PREFIX=$(prefix) @PERL_BINDINGS_OPTIONS@ +.perl-directory-stamp: + if test ! -d perl; then \ + mkdir -p perl/Collectd; \ + cp $(srcdir)/perl/{Collectd.pm,Makefile.PL} perl/; \ + cp $(srcdir)/perl/Collectd/{Unixsock.pm,Makefile.PL} perl/Collectd/; \ + fi + touch $@ + .PHONY: perl