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 670796 - (patch) Show commands when building documentation with make
(patch) Show commands when building documentation with make
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: 1.19
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2012-02-25 16:58 UTC by Hib Eris
Modified: 2012-11-13 22:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
0001-Show-commands-when-building-documentation-with-make-.patch (11.62 KB, patch)
2012-02-25 17:00 UTC, Hib Eris
committed Details | Review

Description Hib Eris 2012-02-25 16:58:50 UTC
Normally, when you run 'make V=1', you see all commands that are run.

The gtk-doc{.notmpl}.make files do not work like this. Instead, they echo a hardcoded message and always hide the build commands.

A patch to correct this follows.
Comment 1 Hib Eris 2012-02-25 17:00:21 UTC
Created attachment 208413 [details] [review]
0001-Show-commands-when-building-documentation-with-make-.patch
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2012-11-06 09:53:35 UTC
Review of attachment 208413 [details] [review]:

Ideally this would also need to be applied to the make files under test/

::: gtk-doc.make
@@ +81,2 @@
 setup-build.stamp:
+	$(GTK_DOC_V_SETUP)if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \

Are you intentionally dropping the '-' ?

::: gtk-doc.notmpl.make
@@ +81,2 @@
 setup-build.stamp:
+	$(GTK_DOC_V_SETUP)if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \

Again the '-'
Comment 3 Hib Eris 2012-11-06 10:06:05 UTC
(In reply to comment #2)
> Review of attachment 208413 [details] [review]:
> 
> Ideally this would also need to be applied to the make files under test/
> 
> ::: gtk-doc.make
> @@ +81,2 @@
>  setup-build.stamp:
> +    $(GTK_DOC_V_SETUP)if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
> 
> Are you intentionally dropping the '-' ?

No, i think dropping it was a mistake.

> 
> ::: gtk-doc.notmpl.make
> @@ +81,2 @@
>  setup-build.stamp:
> +    $(GTK_DOC_V_SETUP)if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
> 
> Again the '-'

Again a mistake.
Comment 4 Stefan Sauer (gstreamer, gtkdoc dev) 2012-11-12 13:49:45 UTC
I pushed you changed + the '-' revert.
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2012-11-12 13:50:03 UTC
Comment on attachment 208413 [details] [review]
0001-Show-commands-when-building-documentation-with-make-.patch

with small mods.
Comment 6 Stefan Sauer (gstreamer, gtkdoc dev) 2012-11-13 21:56:03 UTC
Hib, there seems to be still problems with the change. One thing is that I have to explicitly run make V=0 to get rid of the verbose output. Shouldn't this be the default, especially when using --enable-silent-rules at configure time?
Comment 7 Stefan Sauer (gstreamer, gtkdoc dev) 2012-11-13 22:30:03 UTC
Review of attachment 208413 [details] [review]:

::: gtk-doc.make
@@ +97,3 @@
 
+GTK_DOC_V_SCAN=$(GTK_DOC__v_SCAN_$(V))
+GTK_DOC__v_SCAN=$(GTK_DOC__v_SCAN_$(AM_DEFAULT_VERBOSITY))

This is supposed to be
GTK_DOC__v_SCAN_=$(GTK_DOC__v_SCAN_$(AM_DEFAULT_VERBOSITY))

(you forgot the '_' at the end of the var. Also for all other vars below. Testing patches is appreciated.