>From f104ef8ade570c2af7a8b3986bfd6f1f69ec59b2 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 10 Jun 2024 18:56:07 +0200 Subject: [PATCH] man: Add support for VPATH builds with OpenBSD 'make'. * man/Makefile.am: In the rules that use HELP2MAN, prefix the target file names with '$(srcdir)/'. --- man/Makefile.am | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/man/Makefile.am b/man/Makefile.am index cd13ca3f47..6ff35bf204 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -27,7 +27,7 @@ endif generated_mans += pod2texi.1 -pod2texi.1: $(top_srcdir)/Pod-Simple-Texinfo/pod2texi.pl +$(srcdir)/pod2texi.1: $(top_srcdir)/Pod-Simple-Texinfo/pod2texi.pl $(POD2MAN) -r perl $(top_srcdir)/Pod-Simple-Texinfo/pod2texi.pl \ | sed 's/\(Automatically generated by Pod::Man \).* \((Pod::Simple\) .*)/\1\2)/' >"$@" @@ -80,29 +80,29 @@ common_mandeps = $(top_srcdir)/configure.ac # for Info, we have an additional help2man file since the standard # SEE ALSO text from help2man does not fit. -info.1: $(top_srcdir)/info/info.c $(srcdir)/ginfo.h2m \ +$(srcdir)/info.1: $(top_srcdir)/info/info.c $(srcdir)/ginfo.h2m \ $(common_mandeps) @name="read Info documents" && $(man_rule_bin) -install-info.1: $(top_srcdir)/install-info/install-info.c \ +$(srcdir)/install-info.1: $(top_srcdir)/install-info/install-info.c \ $(common_mandeps) @name="update info/dir entries" && $(man_rule_bin) # Here we need some postprocessing to avoid man misformatting. -makeinfo.1: $(tpdir)/texi2any.pl $(common_mandeps) +$(srcdir)/makeinfo.1: $(tpdir)/texi2any.pl $(common_mandeps) @name="translate Texinfo documents" && $(man_rule_bin) mv $@ $@.tmp sed '/^\.IP$$/N;/\nAlso/s/I//;/\nThe/s/I//' $@.tmp >$@ rm $@.tmp -texindex.1: $(top_srcdir)/texindex/ti.twjr $(common_mandeps) +$(srcdir)/texindex.1: $(top_srcdir)/texindex/ti.twjr $(common_mandeps) @name="sort Texinfo index files" && $(man_rule_bin) # # For texi2dvi, do not depend on the current user's settings. texi2dvi_envvars = unset TEXI2DVI_BUILD_MODE; unset TEXI2DVI_BUILD_DIRECTORY -texi2dvi.1: $(top_srcdir)/util/texi2dvi $(common_mandeps) +$(srcdir)/texi2dvi.1: $(top_srcdir)/util/texi2dvi $(common_mandeps) $(texi2dvi_envvars); $(HELP2MAN) \ --name="convert Texinfo documents to DVI or PDF" \ $(top_srcdir)/util/texi2dvi >$@ -- 2.34.1