From: Florian Forster Date: Fri, 12 Oct 2007 07:32:23 +0000 (+0200) Subject: src/Makefile.am: Make manpage creation fail-safe. X-Git-Tag: collectd-4.2.0~38 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=687120a0e091874aba7bc6b25e207b3f021374af;p=collectd.git src/Makefile.am: Make manpage creation fail-safe. Since Sebastian's patch ships the .pod files in the distribution, this may not fail when perl-doc is not installed. --- diff --git a/src/Makefile.am b/src/Makefile.am index 57a9697d..fe69e8c6 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -584,10 +584,10 @@ EXTRA_DIST += collectd-email.pod collectd-exec.pod collectd-nagios.pod \ collectd.conf.pod collectd.pod .pod.1: - pod2man --release=$(VERSION) --center=$(PACKAGE) $< >$@ + pod2man --release=$(VERSION) --center=$(PACKAGE) $< >.pod2man.tmp 2>/dev/null && mv -f .pod2man.tmp $@ || true .pod.5: - pod2man --section=5 --release=$(VERSION) --center=$(PACKAGE) $< >$@ + pod2man --section=5 --release=$(VERSION) --center=$(PACKAGE) $< >.pod2man.tmp 2>/dev/null && mv -f .pod2man.tmp $@ || true install-exec-hook: $(mkinstalldirs) $(DESTDIR)$(sysconfdir)