From e17f9f43fda310849122a1f736a9e2faa3c485ae Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Thu, 12 Dec 2019 15:15:29 +0100 Subject: [PATCH] docs: fix out-of-source documentation build Invoke make-internal-documentation.pl by its path in the source directory. Also, depend on it to regenerate the documentation in case make-internal-documentation.pl changes. --- docs/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Makefile.am b/docs/Makefile.am index e1f2df952..f16f16c5e 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -151,9 +151,9 @@ stamp-guestfs-hacking.pod: guestfs-hacking.pod internal-documentation.pod source_files := $(shell cat $(srcdir)/C_SOURCE_FILES) -internal-documentation.pod: $(source_files:%=$(top_srcdir)/%) +internal-documentation.pod: $(source_files:%=$(top_srcdir)/%) $(srcdir)/make-internal-documentation.pl rm -f $@ $@-t - ./make-internal-documentation.pl \ + $(srcdir)/make-internal-documentation.pl \ --srcdir $(top_srcdir) \ -o $@-t \ $(source_files)