man: fix out of source build
authorAlexander Stein <alexander.stein@mailbox.org>
Fri, 12 Apr 2019 19:18:21 +0000 (21:18 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 15 Apr 2019 07:35:19 +0000 (09:35 +0200)
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@mailbox.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
man/Makefile.am

index 88778583aa14c2820551694b7c16a3a298b7a8c7..0f9c644320c44da35f709bc7a3fc1575e1b2c728 100644 (file)
@@ -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)