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 166462 - 'make dist' should abort if html docs were not generated
'make dist' should abort if html docs were not generated
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2005-02-06 17:01 UTC by Gustavo Carneiro
Modified: 2007-01-04 13:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (1.27 KB, patch)
2006-04-09 13:33 UTC, Gustavo Carneiro
none Details | Review

Description Gustavo Carneiro 2005-02-06 17:01:24 UTC
1. make clean
2. make dist
 -> result: generated tarball does not include html docs

The generic gtk-doc.make makefile should add a dist hook that checks if html
docs are present and abort if they're not.  Otherwise it's very easy to
accidentally make releases not containing html docs.
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2005-08-24 17:33:57 UTC
docs are generated at build time. I don't think that pre-build docs should be
shipped.
Comment 2 Geert Stappers 2005-08-24 19:52:45 UTC
I second the request to _not_ ship with pre-build docs.

The tar.gz. is the source. No need to include "compiled" stuff.


The argument "it is a nice service to our users" is invalid ( IM(NS)HO )

`make dist` should just and only just build the tar.gz.

Abusing `make dist` for `make gtkdoc` is the wrong thing.
Comment 3 Gustavo Carneiro 2005-08-24 20:03:52 UTC
I won't debate on whether shipping built docs is good or bad.  But one thing you
can't deny is that there is inconsistency in handling of built docs.   If not,
see the following rule in the gtk-doc.make:

---------------
#
# Require gtk-doc when making dist
#
if ENABLE_GTK_DOC
dist-check-gtkdoc:
else
dist-check-gtkdoc:
	@echo "*** gtk-doc must be installed and enabled in order to make dist"
	@false
endif
---------------

See what I mean?  The html docs _are_ shipped by default, if available, and
"make dist" checks that gtk-doc was enabled, it only forgets to check that the
html docs were actually built and exist at the time "make dist" runs.  It's a
matter of consistency.
Comment 4 Sebastien Bacher 2005-08-24 21:23:27 UTC
building HTML API for GTK by example is longer than the build itself, having
html with the tarball is the standard behaviour for GNOME components and handy
for distribution
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2006-03-21 13:09:31 UTC
Gustavo: what should gtkdoc do if not html docs are present. Care to submit a patch?
Comment 6 Gustavo Carneiro 2006-04-09 13:33:51 UTC
Created attachment 63024 [details] [review]
patch
Comment 7 Damon Chaplin 2007-01-04 13:26:12 UTC
I've applied the html part of the patch. Thanks.

I didn't want to apply the tmpl/* line as we may support template-less builds in future.