From df2ed66eb61493135e48bf704d7cdfb7df670888 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Tue, 19 Dec 2023 08:47:05 +1300 Subject: [PATCH] [perl] Fix POD conversion when builddir!=srcdir --- xapian-bindings/perl/Makefile.am | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/xapian-bindings/perl/Makefile.am b/xapian-bindings/perl/Makefile.am index c55f7a58e0..cc27462216 100644 --- a/xapian-bindings/perl/Makefile.am +++ b/xapian-bindings/perl/Makefile.am @@ -187,10 +187,8 @@ docdata_DATA = docs/Xapian.html CLEANFILES += docs/Xapian.html pod2html?.tmp -docs/Xapian.html: Xapian.pm +docs/Xapian.html: $(nobase_dist_perllib_DATA) $(MKDIR_P) docs $(MKDIR_P) docs/Xapian - for m in Xapian.pm Xapian/*.pm ; do \ - $(PERL) -MPod::Html -e 'pod2html(qw(--podpath=. --htmldir=docs --infile='"$$m"' --outfile=docs/'`echo "$$m"|sed 's/\.pm$$//'`'.html))' ;\ - rm -f pod2htm?.tmp ;\ - done + $(PERL) -MPod::Html -e 'for (@ARGV) { my $$pm = $$_; s/pm$$/html/; $$pm = "$(srcdir)/$$pm" unless -f $$pm; pod2html("--podpath=.", "--htmldir=docs", "--infile=$$pm", "--outfile=docs/$$_") }' $(nobase_dist_perllib_DATA) + rm -f pod2htm?.tmp