[libgpiod] [PATCH] man: Fix out of source build

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux