[Spice-devel] [spice-gtk] build: Fix _DEPENDENCIES use
Marc-André Lureau
mlureau at redhat.com
Mon Jun 20 15:25:11 UTC 2016
ack
----- Original Message -----
> We want to trigger rebuild of libspice-client-gtk-3.0.la or
> libspice-client-glib-2.0.la whenever the corresponding symbol file
> changes.
> However _DEPENDENCIES is not the right way of handling that as it will
> disable automatic automake dependency generation.
> This was not causing issues mainly because _DEPENDENCIES was mispelt as
> _DEPEDENCIES.
>
> Quoting automake manual:
> https://www.gnu.org/software/automake/manual/automake.html#index-EXTRA_005fmaude_005fDEPENDENCIES-1
> « The EXTRA_*_DEPENDENCIES variable may be useful for cases where you
> merely want to augment the automake-generated _DEPENDENCIES variable
> rather than replacing it. »
>
> So this commit switches to use EXTRA_*_DEPENDENCIES rather than
> *_DEPENDENCIES.
> ---
> src/Makefile.am | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/Makefile.am b/src/Makefile.am
> index 73bb39c..6fb8507 100644
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -156,7 +156,7 @@ SPICE_GTK_SOURCES_COMMON += \
> endif
>
> if WITH_GTK
> -libspice_client_gtk_3_0_la_DEPEDENCIES = $(GTK_SYMBOLS_FILE)
> +EXTRA_libspice_client_gtk_3_0_la_DEPENDENCIES = $(GTK_SYMBOLS_FILE)
> libspice_client_gtk_3_0_la_LDFLAGS = $(SPICE_GTK_LDFLAGS_COMMON)
> libspice_client_gtk_3_0_la_LIBADD = $(SPICE_GTK_LIBADD_COMMON)
> libspice_client_gtk_3_0_la_SOURCES = $(SPICE_GTK_SOURCES_COMMON)
> @@ -176,7 +176,7 @@ nodist_libspice_client_gtkinclude_HEADERS = \
> $(NULL)
> endif
>
> -libspice_client_glib_2_0_la_DEPENDENCIES = $(GLIB_SYMBOLS_FILE)
> +EXTRA_libspice_client_glib_2_0_la_DEPENDENCIES = $(GLIB_SYMBOLS_FILE)
>
> libspice_client_glib_2_0_la_LDFLAGS = \
> -version-info 13:0:5 \
> --
> 2.7.4
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
>
More information about the Spice-devel
mailing list