pt., 12 kwi 2019 o 21:18 Alexander Stein <alexander.stein@xxxxxxxxxxx> napisał(a): > > Use build and source directory variables for correct paths. > This distinction is important for out of source builds. > > Signed-off-by: Alexander Stein <alexander.stein@xxxxxxxxxxx> > --- > Steps to reproduce: > * cd .../libgpiod/ > * NOCONFIGURE=1 ./autogen.sh > * mkdir /tmp/libgpiod > * cd /tmp/libgpiod > * .../libgpiod/configure --enable-tools > * make > > Fails with: > help2man .../libgpiod/tools/gpiodetect --include=./template --output=./gpiodetect.man --no-info > help2man: can't open `./template' (No such file or directory) > > man/Makefile.am | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/man/Makefile.am b/man/Makefile.am > index 8877858..0f9c644 100644 > --- a/man/Makefile.am > +++ b/man/Makefile.am > @@ -10,8 +10,8 @@ if WITH_MANPAGES > > dist_man1_MANS = gpiodetect.man gpioinfo.man gpioget.man gpioset.man gpiofind.man gpiomon.man > > -%.man: $(top_srcdir)/tools/$(*F) > - help2man $(top_srcdir)/tools/$(*F) --include=./template --output=./$@ --no-info > +%.man: $(top_builddir)/tools/$(*F) > + help2man $(top_builddir)/tools/$(*F) --include=$(srcdir)/template --output=$(builddir)/$@ --no-info > > clean-local: > rm -f $(dist_man1_MANS) > -- > 2.21.0 > Applied, thanks! Bart