[grilo-plugins] build: Add generated GResource C and H files to CLEANFILES



commit 9444e0baddedb62b547f3ecc52f328f7d8ddc7af
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Thu May 7 11:18:54 2015 +0100

    build: Add generated GResource C and H files to CLEANFILES
    
    And also don’t distribute them in the source tarball, since they’re
    generated files.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=749063

 src/apple-trailers/Makefile.am |   12 +++++++++---
 src/raitv/Makefile.am          |   12 +++++++++---
 src/vimeo/Makefile.am          |   10 ++++++++--
 src/youtube/Makefile.am        |   11 ++++++++++-
 4 files changed, 36 insertions(+), 9 deletions(-)
---
diff --git a/src/apple-trailers/Makefile.am b/src/apple-trailers/Makefile.am
index 7aa4f6a..b80906a 100644
--- a/src/apple-trailers/Makefile.am
+++ b/src/apple-trailers/Makefile.am
@@ -24,9 +24,9 @@ libgrlappletrailers_la_LDFLAGS = \
 
 libgrlappletrailers_la_SOURCES =       \
        grl-apple-trailers.c            \
-       grl-apple-trailers.h            \
-       apple-trailersresources.h       \
-       apple-trailersresources.c
+       grl-apple-trailers.h
+nodist_libgrlappletrailers_la_SOURCES = \
+       $(resource_sources)
 
 extdir                                         = $(GRL_PLUGINS_DIR)
 appletrailersxmldir            = $(GRL_PLUGINS_DIR)
@@ -47,6 +47,12 @@ apple-trailersresources.c: apple-trailers.gresource.xml apple-trailersresources.
        $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/apple-trailers.gresource.xml \
                --target=$@ --sourcedir=$(srcdir) --c-name _grl_apple_trailers --generate-source
 
+resource_sources = \
+       apple-trailersresources.h \
+       apple-trailersresources.c \
+       $(NULL)
+CLEANFILES = $(resource_sources)
+
 EXTRA_DIST += $(appletrailersxml_DATA) channel-trailers.svg apple-trailers.gresource.xml
 
 MAINTAINERCLEANFILES = \
diff --git a/src/raitv/Makefile.am b/src/raitv/Makefile.am
index b8d9c0c..fd5cb12 100644
--- a/src/raitv/Makefile.am
+++ b/src/raitv/Makefile.am
@@ -23,9 +23,9 @@ libgrlraitv_la_LDFLAGS = \
 
 libgrlraitv_la_SOURCES =               \
        grl-raitv.c                     \
-       grl-raitv.h                     \
-       raitvresources.h                \
-       raitvresources.c
+       grl-raitv.h
+nodist_libgrlraitv_la_SOURCES = \
+       $(resource_sources)
 
 extdir                         = $(GRL_PLUGINS_DIR)
 raitvxmldir    = $(GRL_PLUGINS_DIR)
@@ -38,6 +38,12 @@ raitvresources.c: raitv.gresource.xml raitvresources.h channel-rai.svg
        $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/raitv.gresource.xml \
                --target=$@ --sourcedir=$(srcdir) --c-name _grl_raitv --generate-source
 
+resource_sources = \
+       raitvresources.c \
+       raitvresources.h \
+       $(NULL)
+CLEANFILES = $(resource_sources)
+
 EXTRA_DIST += $(raitvxml_DATA) channel-rai.svg raitv.gresource.xml
 
 MAINTAINERCLEANFILES = \
diff --git a/src/vimeo/Makefile.am b/src/vimeo/Makefile.am
index ddc097a..10071fd 100644
--- a/src/vimeo/Makefile.am
+++ b/src/vimeo/Makefile.am
@@ -27,8 +27,8 @@ libgrlvimeo_la_SOURCES =      \
        grl-vimeo.h             \
        gvimeo.c                \
        gvimeo.h                \
-       vimeoresources.h        \
-       vimeoresources.c
+nodist_libgrlvimeo_la_SOURCES = \
+       $(resource_sources)
 
 extdir                 = $(GRL_PLUGINS_DIR)
 vimeoxmldir            = $(GRL_PLUGINS_DIR)
@@ -49,6 +49,12 @@ vimeoresources.c: vimeo.gresource.xml vimeoresources.h channel-vimeo.svg
        $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/vimeo.gresource.xml \
                --target=$@ --sourcedir=$(srcdir) --c-name _grl_vimeo --generate-source
 
+resource_sources = \
+       vimeoresources.c \
+       vimeoresources.h \
+       $(NULL)
+CLEANFILES = $(resource_sources)
+
 EXTRA_DIST += $(vimeoxml_DATA) channel-vimeo.svg vimeo.gresource.xml
 
 MAINTAINERCLEANFILES = \
diff --git a/src/youtube/Makefile.am b/src/youtube/Makefile.am
index ecf7981..43680fc 100644
--- a/src/youtube/Makefile.am
+++ b/src/youtube/Makefile.am
@@ -22,7 +22,10 @@ libgrlyoutube_la_LDFLAGS = \
        -module            \
        -avoid-version
 
-libgrlyoutube_la_SOURCES = grl-youtube.c grl-youtube.h youtuberesources.h youtuberesources.c
+libgrlyoutube_la_SOURCES = grl-youtube.c grl-youtube.h
+nodist_libgrlyoutube_la_SOURCES = \
+       youtuberesources.h \
+       youtuberesources.c
 
 extdir                         = $(GRL_PLUGINS_DIR)
 youtubexmldir          = $(GRL_PLUGINS_DIR)
@@ -35,6 +38,12 @@ youtuberesources.c: youtube.gresource.xml youtuberesources.h channel-youtube.svg
        $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/youtube.gresource.xml \
                --target=$@ --sourcedir=$(srcdir) --c-name _grl_youtube --generate-source
 
+resource_sources = \
+       youtuberesources.c \
+       youtuberesources.h \
+       $(NULL)
+CLEANFILES = $(resource_sources)
+
 EXTRA_DIST += $(youtubexml_DATA) channel-youtube.svg youtube.gresource.xml
 
 MAINTAINERCLEANFILES    = \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]