X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=bindings%2FMakefile.am;h=07373e87a62bd67c66cee878c0c389ab8e6d1e2d;hp=56fc5ed7cc6817ab86b15c23e608874065136ed9;hb=80294418289129eb75c9f07e2043adcbd02941a4;hpb=bf449b5f3457852984e99d26d64cadf9dcac35d1 diff --git a/bindings/Makefile.am b/bindings/Makefile.am index 56fc5ed7..07373e87 100644 --- a/bindings/Makefile.am +++ b/bindings/Makefile.am @@ -35,6 +35,7 @@ install-exec-local: # So we do the work here. uninstall-local: @PERL@ -I$(DESTDIR)$(prefix) $(srcdir)/perl/uninstall_mod.pl Collectd + find $(DESTDIR)$(prefix) -name "perllocal.pod" -exec rm {} \; clean-local: rm -rf buildperl @@ -44,7 +45,13 @@ perl: buildperl/Makefile buildperl/Makefile: .perl-directory-stamp buildperl/Makefile.PL \ $(top_builddir)/config.status - cd buildperl && @PERL@ Makefile.PL INSTALL_BASE=$(DESTDIR)$(prefix) @PERL_BINDINGS_OPTIONS@ + @# beautify the output a bit + @echo 'cd buildperl && @PERL@ Makefile.PL @PERL_BINDINGS_OPTIONS@' + @cd buildperl && ( if ! @PERL@ Makefile.PL @PERL_BINDINGS_OPTIONS@; then \ + echo ""; \ + echo 'Check whether you have set $$PERL_MM_OPT in your environment and try using ./configure --with-perl-bindings=""'; \ + echo ""; \ + fi ) buildperl/Makefile.PL: .perl-directory-stamp $(top_builddir)/config.status