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>
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)