Out of tree builds cause make install to re-gen gtk-doc
Submitted by Ross Burton
If glib is configured to do an out-of-tree build then this happens:
- configure runs and generates build/docs/reference/glib/version.xml
- make all runs, the gtk-doc.make setup-build target copies all content files from $srcdir to $builddir. This replaces the generated version.xml with the original in the tarball. It then proceeds to generate gtk-doc.
- make install runs, make notices that version.xml is older than config.status, so re-runs config.status to regenerate version.xml and so regenerates the gtk-doc again before installing it.
My hacky patch is: --- a/gtk-doc.make +++ b/gtk-doc.make @@ -113,3 +113,3 @@ setup-build.stamp: test -f $(abs_srcdir)/$$file && \
cp -pf $(abs_srcdir)/$$file $(abs_builddir)/$$file || true; \
cp -pn $(abs_srcdir)/$$file $(abs_builddir)/$$file || true; \ done; \
(only copy files which don't exist already)
But why does gtk-doc need to copy the content at all?