After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 656658 - gtk-doc.make: install target doesn't install docs when building in a separate directory
gtk-doc.make: install target doesn't install docs when building in a separate...
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: 1.18
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2011-08-16 14:41 UTC by Michał Górny
Modified: 2011-08-16 16:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Look for generated docs in $(builddir) instead (934 bytes, patch)
2011-08-16 14:42 UTC, Michał Górny
committed Details | Review

Description Michał Górny 2011-08-16 14:41:44 UTC
The 'install' target fails to install docs with the following message:

	-- Nothing to install

when the build is being done in a separate directory.

To reproduce:

	cd /some/app/with/gtkdoc
	mkdir build; cd build
	../configure --enable-gtk-doc
	make install

As expected, gtk-doc builds HTML files in ./doc/html/ but then refuses to find them. I guess lhe following is responsible:

	@installfiles=`echo $(srcdir)/html/*`

which looks for the generated data in $(srcdir) instead of $(builddir).
Comment 1 Michał Górny 2011-08-16 14:42:42 UTC
Created attachment 193956 [details] [review]
Look for generated docs in $(builddir) instead

Attaching the patch that fixes the issue for me.
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2011-08-16 16:28:57 UTC
which version of gtk-doc are you using?
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2011-08-16 16:47:32 UTC
Hmm the change makes total sense. Wonder how this got overlooked. Also applied the fix to the other makefile. Thanks!
Comment 4 Stefan Sauer (gstreamer, gtkdoc dev) 2011-08-16 16:48:47 UTC
Comment on attachment 193956 [details] [review]
Look for generated docs in $(builddir) instead

Also applied same change in gtk-doc.notmpl.make