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.
This commit is contained in:
Pino Toscano
2019-12-12 15:15:29 +01:00
parent 323909d92e
commit e17f9f43fd

View File

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